A package.json linter for Node projects
npm-package-json-lint helps enforce standards for your package.json file. Currently it can check for:
- validity of data types in nodes. Ex:
name
should always be a string. - whether a string is a lowercase
- whether a version number is a valid
- the presence of a given module
- the presence of a pre-release version of a module
- and much more!
Please see the website for a list of rules.
First thing first, let's make sure you have the necessary pre-requisites.
npm install npm-package-json-lint -g
npm install npm-package-json-lint
Quick links
CLI commands and configuration | Node.js API
Please see the migration guide.
Please see the migration guide.
Please see the migration guide.
Please see the migration guide.
Please see the migration guide.
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
- grunt-npm-package-json-lint: Grunt Wrapper for npm-package-json-lint
- npm-package-json-lint-config-default: Shared default configuration module for npm-package-json-lint
Copyright (c) 2016-2020 Thomas Lindner. Licensed under the MIT license.