Configurable linter for package.json files
255
stars
1,256
commits
TypeScript
primary language
Sep 10, 2026
updated
A package.json linter for Node projects
npm-package-json-lint helps enforce standards for your package.json file. This helps to ensure that your files are of the highest standard and quality. It is also customisable to match your specific project guidline requirements/desires. It has support for both command line and programmatic usage. Currently it can check for:
name should always be a string.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 -gnpm install npm-package-json-lintnpx npm-package-json-lint. This will go through the process of linting/validating
your code to meet your desired specifications. For an example configuration file, please see configuration examples section on the website.The linter can also be used as a module in the program and the output be displayed via a log message. Adding the following code to your file can accomplish this. For an example configuration file, please see configuration examples section on the website.
const npmPackageJsonLint = require("npm-package-json-lint");
const result = npmPackageJsonLint.lintFiles(["package.json"]);
console.log(result);
npm-package-json-lint has the ability to be configured to match your desires. To configure the linter navigate to the .npmpackagejsonlintrc file in the repository and add in or remove your desired rules. For an example configuration file, please see configuration examples section on the website.
Follow these steps to get your local environement set up to allow you to contribute to the repository
git clone https://github.com/tclindner/npm-package-json-lint.gitQuick links
CLI commands and configuration | Node.js API | Integrations
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 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 the migration guide.
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
Copyright (c) 2016-2026 Thomas Lindner. Licensed under the MIT license.
(top 30 of 31)
TypeScript
94.4%
JavaScript
5.4%
Configurable linter for package.json files
255
stars
1,256
commits
TypeScript
primary language
Sep 10, 2026
updated
A package.json linter for Node projects
npm-package-json-lint helps enforce standards for your package.json file. This helps to ensure that your files are of the highest standard and quality. It is also customisable to match your specific project guidline requirements/desires. It has support for both command line and programmatic usage. Currently it can check for:
name should always be a string.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 -gnpm install npm-package-json-lintnpx npm-package-json-lint. This will go through the process of linting/validating
your code to meet your desired specifications. For an example configuration file, please see configuration examples section on the website.The linter can also be used as a module in the program and the output be displayed via a log message. Adding the following code to your file can accomplish this. For an example configuration file, please see configuration examples section on the website.
const npmPackageJsonLint = require("npm-package-json-lint");
const result = npmPackageJsonLint.lintFiles(["package.json"]);
console.log(result);
npm-package-json-lint has the ability to be configured to match your desires. To configure the linter navigate to the .npmpackagejsonlintrc file in the repository and add in or remove your desired rules. For an example configuration file, please see configuration examples section on the website.
Follow these steps to get your local environement set up to allow you to contribute to the repository
git clone https://github.com/tclindner/npm-package-json-lint.gitQuick links
CLI commands and configuration | Node.js API | Integrations
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 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 the migration guide.
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
Copyright (c) 2016-2026 Thomas Lindner. Licensed under the MIT license.
(top 30 of 31)
TypeScript
94.4%
JavaScript
5.4%