JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 86640
  • Score
    100M100P100Q199018F
  • License MIT

Check if a string is a valid filename

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 Build Status

Check if a string is a valid filename

Install

$ npm install --save valid-filename

Usage

var validFilename = require('valid-filename');

validFilename('foo/bar');
//=> false

validFilename('foo-bar');
//=> true

License

MIT © Sindre Sorhus