0.2.1 • Published 8 years ago

validate_filename v0.2.1

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

validate_filename

Validate the file and folder names

Install

npm install

Usage

Usage: node node_modules/validate_filename/index.js <options> [file ...]

validate the file and folder names

Options:

-h, --help               output usage information
-V, --version            output the version number
-e, --pattern <pattern>  a string that specifies the pattern of the regular expression
-m, --message <message>  output errors when invalid

Demo

  • check one or more paths

    node node_modules/validate_filename/index.js -e '^[a-z0-9_./]+$' -m 'Use snake_case for file and folder names' test.html UPPERCASE.html path/to/test-file.css images/logo.png
  • use ls command

    node node_modules/validate_filename/index.js -e '^[a-z0-9_./]+$' -m 'Use snake_case for file and folder names' $(ls)
0.2.1

8 years ago

0.2.0

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago