CLI to validate package.json files. ๐
npm install package-json-validator-cli
CLI to validate package.json files.
๐
Run this package as a terminal command to validate a package.json file:
``shell`
npx package-json-validator-cli
See package-json-validator-cli --help for usage:
`plaintext`
Options:
--help Show help [boolean]
--version Show version number [boolean]
-f, --filename package.json file to validate [default: "package.json"]
-w, --warnings display warnings [boolean] [default: false]
-r, --recommendations display recommendations [boolean] [default: false]
-q, --quiet less output [boolean] [default: false]
package-json-validator-cli is a thin wrapper around package-json-validator.
- To keep your package.json validated over time, see eslint-plugin-package-json.package.json
- To programmatically validate your , see package-json-validator.
You might want to use this as a standalone script in your package.json:
`jsonc`
// package.json
{
"scripts": {
"lint:package": "package-json-validator-cli",
},
}
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! ๐
Josh Goldberg โจ ๐ ๐ป ๐ ๐ ๐ค ๐ ๐ง ๐ ๐ง | michael faith ๐ ๐ป ๐ ๐ ๐ค ๐ ๐ง ๐ ๐ง |
> ๐ This package was templated with create-typescript-app` using the Bingo framework.