@bevry/valid-filename
Check if a string is a valid filename.
Reference material:
- Jacob T. Nielsen's stackoverflow answer.
- sindresorhus/valid-filename
- sindresorhus/filename-reserved-regex
Usage
Install
npm
Install Globally
- Install:
npm install --global @bevry/valid-filename
- Executable:
@bevry/valid-filename
Install Locally
- Install:
npm install --save @bevry/valid-filename
- Executable:
npx @bevry/valid-filename
- Import:
import pkg from ('@bevry/valid-filename')
- Require:
const pkg = require('@bevry/valid-filename').default
Editions
This package is published with the following editions:
-
@bevry/valid-filename/source/index.ts
is TypeScript source code with Import for modules -
@bevry/valid-filename
aliases@bevry/valid-filename/edition-es2017/index.js
-
@bevry/valid-filename/edition-es2017/index.js
is TypeScript compiled against ES2017 for Node.js with Require for modules -
@bevry/valid-filename/edition-es2017-esm/index.js
is TypeScript compiled against ES2017 for Node.js with Import for modules
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
Sponsors
No sponsors yet! Will you be the first?
Contributors
No contributors yet! Will you be the first?
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
- Copyright © 2023+ Benjamin Lupton
and licensed under: