{"id":13596841,"url":"https://github.com/tclindner/npm-package-json-lint","last_synced_at":"2026-01-02T04:48:26.190Z","repository":{"id":37270659,"uuid":"55742313","full_name":"tclindner/npm-package-json-lint","owner":"tclindner","description":"Configurable linter for package.json files","archived":false,"fork":false,"pushed_at":"2025-04-04T23:43:34.000Z","size":7132,"stargazers_count":235,"open_issues_count":54,"forks_count":33,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-06T09:03:28.915Z","etag":null,"topics":["linter","nodejs","npm","npm-package","npm-package-json-lint"],"latest_commit_sha":null,"homepage":"https://npmpackagejsonlint.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tclindner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-08T02:06:42.000Z","updated_at":"2025-02-13T01:00:15.000Z","dependencies_parsed_at":"2023-11-21T21:25:43.522Z","dependency_job_id":"58dcbab5-7386-458c-a7b4-91fb291230e4","html_url":"https://github.com/tclindner/npm-package-json-lint","commit_stats":{"total_commits":778,"total_committers":32,"mean_commits":24.3125,"dds":0.4048843187660668,"last_synced_commit":"3a7a83dbf76175bad1d0bf0b1dde70001b680975"},"previous_names":[],"tags_count":88,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tclindner%2Fnpm-package-json-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tclindner%2Fnpm-package-json-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tclindner%2Fnpm-package-json-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tclindner%2Fnpm-package-json-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tclindner","download_url":"https://codeload.github.com/tclindner/npm-package-json-lint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248717240,"owners_count":21150387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["linter","nodejs","npm","npm-package","npm-package-json-lint"],"created_at":"2024-08-01T16:02:51.484Z","updated_at":"2026-01-02T04:48:26.184Z","avatar_url":"https://github.com/tclindner.png","language":"TypeScript","funding_links":[],"categories":["TypeScript","Linters"],"sub_categories":["npm"],"readme":"# npm-package-json-lint\n\n\u003e A package.json linter for Node projects\n\n\n[![license](https://img.shields.io/github/license/tclindner/npm-package-json-lint.svg?maxAge=2592000\u0026style=flat-square)](https://github.com/tclindner/npm-package-json-lint/blob/master/LICENSE)\n[![npm](https://img.shields.io/npm/v/npm-package-json-lint.svg?maxAge=2592000?style=flat-square)](https://www.npmjs.com/package/npm-package-json-lint)\n![ci](https://github.com/tclindner/npm-package-json-lint/workflows/ci/badge.svg?branch=master)\n[![Netlify Status](https://api.netlify.com/api/v1/badges/e76a30d9-13f0-4691-a49b-454570589de2/deploy-status)](https://app.netlify.com/sites/npmpackagejsonlint/deploys)\n\n- [npm-package-json-lint](#npm-package-json-lint)\n  * [What is npm-package-json-lint?](#what-is-npm-package-json-lint-)\n  * [Install and Use](#install-and-use)\n    + [System Dependencies](#system-dependencies)\n      - [Node](#node)\n    + [Use the cli](#use-the-cli)\n      - [Use cli globally](#use-cli-globally)\n      - [Use cli in project](#use-cli-in-project)\n      - [Using the linter](#using-the-linter)\n        * [From the command line](#from-the-command-line)\n        * [In the program](#in-the-program)\n  * [Custom Configuration](#custom-configuration)\n  * [Local Development](#local-development)\n  * [Documentation](#documentation)\n  * [Migrating from v5.x.x to 6.x.x](#migrating-from-v5xx-to-6xx)\n  * [Migrating from v4.x.x to 5.x.x](#migrating-from-v4xx-to-5xx)\n  * [Migrating from v3.x.x to 4.x.x](#migrating-from-v3xx-to-4xx)\n  * [Migrating from v2.x.x to 3.x.x](#migrating-from-v2xx-to-3xx)\n  * [Migrating from v1.x.x to 2.x.x](#migrating-from-v1xx-to-2xx)\n  * [Migrating from v0.x.x to 1.x.x](#migrating-from-v0xx-to-1xx)\n  * [Contributing](#contributing)\n  * [Release History](#release-history)\n  * [Related](#related)\n  * [License](#license)\n\n## What is npm-package-json-lint?\n\nnpm-package-json-lint helps enforce standards for your package.json file.\nThis helps to ensure that your files are of the highest standard and quality.\nIt is also customisable to match your specific project guidline requirements/desires.\nIt has support for both command line and programmatic usage.\nCurrently it can check for:\n\n* validity of data types in nodes. Ex: `name` should always be a string.\n* whether a string is a lowercase\n* whether a version number is a valid\n* the presence of a given module\n* the presence of a pre-release version of a module\n* the presence of an author\n* the presence of any bugs\n* valid dependencies\n* valid licenses\n* and much more!\n\nPlease see the [website](https://npmpackagejsonlint.org/docs/rules) for a list of rules.\n\n## Install and Use\n\nFirst thing first, let's make sure you have the necessary pre-requisites.\n\n### System Dependencies\n\n#### Node\n\n* [Node.js](https://nodejs.org/) - v20.0.0+\n* [npm](http://npmjs.com) - v10.0.0+\n\n### Use the cli\n\n#### Use cli globally\n\n* `npm install npm-package-json-lint -g`\n\n#### Use cli in project\n\n* `npm install npm-package-json-lint`\n\n#### Using the linter\n\n##### From the command line\n\n* Once npm-package-json-lint is installed either in the project or globally it can be run with the \n  following command, `npx npm-package-json-lint`. This will go through the process of linting/validating\n  your code to meet your desired specifications.\n  \n##### In the program\n\n* The linter can also be used as a module in the program and the output be displayed via a log message.\n  Adding the following code to your file can accomplish this.\n\n  ```\n  const npmPackageJsonLint = require(\"npm-package-json-lint\");\n  const result = npmPackageJsonLint.lintFiles([\"package.json\"]);\n  console.log(result);\n  ```\n \n## Custom Configuration\n\n  npm-package-json-lint has the ability to be constomly configured to match your desires.\n  To configure the linter navigate to the .npmpackagejsonlintrc file in the repository and add\n  in or remove your desired rules.\n\n## Local Development\nFollow these steps to get your local environement set up to allow you to contribute to the repository\n\n1. In the terminal, navigate to the directory in which you want the repository to be cloned.\n2. Run this command from the terminal, `git clone https://github.com/tclindner/npm-package-json-lint.git`\n3. After cloning the repository navigate into the project's root directory from the terminal.\n4. Run \"npm install\" to install the necessary dependencies.\n5. Your local environment is now set up to create PR's and work on different issues\n\n## Documentation\n\n[Website](https://npmpackagejsonlint.org)\n\nQuick links\n\n[CLI commands and configuration](https://npmpackagejsonlint.org/docs/cli) | [Node.js API](https://npmpackagejsonlint.org/docs/api) | [Integrations](https://npmpackagejsonlint.org/docs/integrations)\n\n## Migrating from v8.x.x to 9.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v8-to-v9).\n\n## Migrating from v7.x.x to 8.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v7-to-v8).\n\n## Migrating from v6.x.x to 7.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v6-to-v7).\n\n## Migrating from v5.x.x to 6.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v5-to-v6).\n\n## Migrating from v4.x.x to 5.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v4-to-v5).\n\n## Migrating from v3.x.x to 4.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v3-to-v4).\n\n## Migrating from v2.x.x to 3.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v2-to-v3).\n\n## Migrating from v1.x.x to 2.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v1-to-v2).\n\n## Migrating from v0.x.x to 1.x.x\n\nPlease see the [migration guide](https://npmpackagejsonlint.org/docs/v0-to-v1).\n\n## Contributing\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md).\n\n## Release History\n\nPlease see [CHANGELOG.md](CHANGELOG.md).\n\n## Related\n\n* [npm-package-json-lint-config-default](https://github.com/tclindner/npm-package-json-lint-config-default): Shared default configuration module for npm-package-json-lint\n\n## License\n\nCopyright (c) 2016-2026 Thomas Lindner. Licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftclindner%2Fnpm-package-json-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftclindner%2Fnpm-package-json-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftclindner%2Fnpm-package-json-lint/lists"}