package.json-validator
package.json-validator copied to clipboard
A tool/library for validating npm/node package.json files
While it is valid for a private package (`"private": true`) to have a version, it certainly shouldn't _require_ one. Tools like changeset require that you remove the private package version...
We don't need to get into a conversation about whether [warnings like this](https://github.com/altano/npm-packages/security/dependabot/106) are helpful or not, but they are happening. My latest one was from pulling in `eslint-plugin-package-json`, because...
``` javascript var PJV=require('package-json-validator').PJV; PJV.validate(repoName, spec, options); ``` ``` sh psjv -r repoName ``` This is try to fetch the required package.json from the npmjs.org based on the repoName and...
👋 Hi all! I'm going to be helping out with maintenance of the project for a little while. @TechNickAI has granted me some GitHub and npm permissions, so I should...
This repo's development flow hasn't been worked on in quite a while. It still uses Grunt, doesn't have GitHub issue or PR templates, and no longer has CI running for...
A nice addition would be to use this as an npm script: ``` js // package.json { "scripts": { "test": "package-json-validator" } } ```
## Context I maintain [`eslint-plugin-package-json`](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json), which is an [ESLint](https://eslint.org) plugin that lints for `package.json` file correctness. It includes `package.json-validator` by way of a [`package-json/valid-package-def` rule](https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/blob/9077496bb1a4d4f63144b8a15759ca9b8c75593c/docs/rules/valid-package-def.md) that directly runs `package.json-validator`'s Node.js...
I'm currently trying to get my package.json valided before submiting a new package. However, the validation is faling since I'm trying to use GitHub URLs in my dependencies. From the...