Package Exports
- valid-filename
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (valid-filename) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
valid-filename 
Check if a string is a valid filename
Install
$ npm install valid-filename
Usage
const validFilename = require('valid-filename');
validFilename('foo/bar');
//=> false
validFilename('foo-bar');
//=> true
API
validFilename(input)
Returns a boolean
of whether input
is a valid filename.
input
Type: string
The string to check.
Related
- filenamify - Convert a string to a valid safe filename
License
MIT © Sindre Sorhus