file-name-linter

validates if the file names in one or more directories match a convention

Usage no npm install needed!

<script type="module">
  import fileNameLinter from 'https://cdn.skypack.dev/file-name-linter';
</script>

README

file-name-linter

node module that validates if the file names in one or more directories match a convention

Build status coverage report NPM version

Goals

  • no external dependencies in production environment
  • small size (currently less than 0.2 MB)
  • simple config (see example config)
  • allow custom file name patterns
  • check all file extensions
  • 100% test coverage

Alternatives

eslint-plugin-filenames

  • 3 dependencies (0.2 MB)
  • only checks JavaScript files
  • can't check file extensions

fnlint

fs-lint

  • 6 dependencies (2.2 MB)
  • can't check file extensions
  • no support for custom file name patterns
  • unsure about test coverage

name-lint

  • 2 dependencies (0.4 MB)
  • can't check file extensions
  • unsure about test coverage

rubocop

  • only checks Ruby files
  • can't check file extensions