is-safe
v1.0.0
Published
Check if filename is safe for linux/mac/windows
Downloads
2
Maintainers
Readme
is-safe
Installation
npm i -s is-safe
Example
const isSafe = require('is-safe');
isSafe('/test.png') // => false
isSafe('test---.png') // => true
isSafe('"test.png')
// if os is windows => true
// else => false
isSafe('"test.png', true) // => false