name-lint

1.1.0 • Public • Published

name-lint

Build Status

Check directories and files for naming consistency.

Usage

Recommended usage is to create a js file with the preferred naming conventions for your project. See examples/lower-dash-case.js for an example.

lint(dir, options, function (err, matches) {
  // ...
});
  • dir: path of the directory to start from.
  • options: object containing the following:
  • dirFormat: regexp of the expected format for directories
  • fileFormats: key-value map of file extensions to expected regexp format (see examples)
  • exclude: array of glob patterns (refer to https://www.npmjs.org/package/minimatch). When a directory matching one of these is reached we ignore the directory and everything in it.

License

MIT

/name-lint/

    Package Sidebar

    Install

    npm i name-lint

    Weekly Downloads

    47

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    5.07 kB

    Total Files

    11

    Last publish

    Collaborators

    • joshwnj