0.1.0 • Published 5 years ago
@pyramation/upload-names v0.1.0
upload-names
npm install @pyramation/upload-namesnaming files for URLs
const results = await getName(filename, options);options
english (bool)
if you want super URL-friendly names, use
english: truenotes
english=true, can end up stripping the entire string if it's not a good input, and it will throw an error.english=falseallows 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: truedelimeter
defaults to -