Closed scowalt closed 3 years ago
The filenamify()
method is meant to accept a pure string, not an existing filename. There's filenamify.path()
, but it doesn't currently work because of https://github.com/sindresorhus/filenamify/blob/120141454e7dc9cba84e58f94ce5fa3f79ee6565/index.js#L40. I don't remember why I added that. We could possibly remove it to allow filenames too.
Perhaps this could be an option
keepExtension
, default tofalse
to keep backwards compatibility.