Last 12 weeks · 0 commits
4 of 6 standards met
Repository: sindresorhus/filenamify. Description: Convert a string to a valid safe filename Stars: 516, Forks: 28. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v7.0.1 (4mo ago). Open PRs: 1, open issues: 1. Last activity: 4mo ago. Community health: 85%. Top contributors: sindresorhus, tomasklaen, BendingBender, Richienb, orsett0, MiAmigaAiva, daveseco7, marcelgerber, miraclx, e-cloud and others.
Instead of duplicating the entry point for the browser (the default of and being the same), how about exporting and ? This way there's no footgun for browser users that either import or don't set a mapping.
At the moment, does not filter out unicode bidi characters such as U+202E RIGHT-TO-LEFT-OVERRIDE. There is some concern that these could be used to construct malicious but innocent-looking filenames: becomes: My feeling is that this library should strip these characters, but I'm not 100% certain.