All Projects → atlassian → validate-npm-package

atlassian / validate-npm-package

Licence: other
Validate a package.json file

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to validate-npm-package

package-info.nvim
✍️ All the npm/yarn commands I don't want to type
Stars: ✭ 248 (+608.57%)
Mutual labels:  package-json
sync-pkg
Minimalist CLI to sync only basic properties from package.json to bower.json
Stars: ✭ 15 (-57.14%)
Mutual labels:  package-json
webpack-auto-inject-version
Webpack plugin to auto inject version into html or file
Stars: ✭ 70 (+100%)
Mutual labels:  package-json
sum-up
Summarize package information
Stars: ✭ 15 (-57.14%)
Mutual labels:  package-json
mingine
A module to get the minimum usable engine(s)
Stars: ✭ 17 (-51.43%)
Mutual labels:  package-json
executor
A powerful "short-cutter" to your console to you and your team!
Stars: ✭ 21 (-40%)
Mutual labels:  package-json
upgreat
CLI for a painless way to upgrade your package.json dependencies!
Stars: ✭ 47 (+34.29%)
Mutual labels:  package-json
get-bin-path
Get the current package's binary path
Stars: ✭ 25 (-28.57%)
Mutual labels:  package-json
select-run
A CLI tool to interactively search & select one or many package.json npm scripts to run
Stars: ✭ 29 (-17.14%)
Mutual labels:  package-json
generate-package-json-webpack-plugin
Generates a package.json file containing the external modules used by your webpack bundle
Stars: ✭ 59 (+68.57%)
Mutual labels:  package-json
npmtooling
This is the repository for my course, Tooling with NPM Scripts on LinkedIn Learning and Lynda.com.
Stars: ✭ 13 (-62.86%)
Mutual labels:  package-json
shoulders
💛 Quickly view a list of your dependencies' open issues.
Stars: ✭ 62 (+77.14%)
Mutual labels:  package-json

validate-npm-package

Validate a package.json file

const validateNpmPackage = require('validate-npm-package');

let results = validateNpmPackage({
  name: 'foo',
  version: '1.0.0',
});
// {
//   validForNewPackages: false,
//   validForOldPackages: true,
//   warnings: ["..."],
//   errors: ["..."],
// }

There's also a CLI:

$ validate-npm-package
$ validate-npm-package path/to/pkg
$ validate-npm-package --quiet/-q
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].