0.1.0 • Published 4 years ago

@pyramation/upload-names v0.1.0

Weekly downloads
1
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

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 -