@pyramation/upload-names
v0.1.0
Published
upload names
Downloads
17
Readme
upload-names
npm install @pyramation/upload-names
naming files for URLs
const results = await getName(filename, options);
options
english (bool)
if you want super URL-friendly names, use
english: true
notes
english=true
, can end up stripping the entire string if it's not a good input, and it will throw an error.english=false
allows languages like chinese and russian, however, they get converted into super ugly URLs because of web standards.
lower (bool)
lowercase is ideal for URLs, but not necessary
lower: true
delimeter
defaults to -