Gathering detailed insights and metrics for @teamteanpm2024/perspiciatis-nesciunt-excepturi
Gathering detailed insights and metrics for @teamteanpm2024/perspiciatis-nesciunt-excepturi
Gathering detailed insights and metrics for @teamteanpm2024/perspiciatis-nesciunt-excepturi
Gathering detailed insights and metrics for @teamteanpm2024/perspiciatis-nesciunt-excepturi
npm install @teamteanpm2024/perspiciatis-nesciunt-excepturi
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
37
package.json
files are required for node.js/npm projects. Beyond just valid json, there are required fields to follow the specifications. This tool verifies the package.json against the specification of your choice, letting you know if you have a valid file. The validation reports required fields that you MUST have, warns for fields that you SHOULD have, and recommends optional fields that you COULD have.
Of course, there are multiple ones to follow, which makes it trickier.
npm install @teamteanpm2024/perspiciatis-nesciunt-excepturi -g
See pjv --help
for usage:
Options:
--filename, -f package.json file to validate [default: "package.json"]
--spec, -s which spec to use - npm|commonjs_1.0|commonjs_1.1 [default: "npm"]
--warnings, -w display warnings [default: false]
--recommendations, -r display recommendations [default: false]
--quiet, -q less output [default: false]
--help, -h, -? this help message [default: false]
npm install @teamteanpm2024/perspiciatis-nesciunt-excepturi
Have your package validate via a Grunt plugin - see grunt-nice-package
Have your package validate via a gulp plugin - see gulp-nice-package
1PJV.validate(packageData[[, spec], options])
spec
is either npm
, commonjs_1.0
, or commonjs_1.1
options
is an object with the following available:
1{ 2 warnings: true, // show warnings 3 recommendations: true // show recommendations 4}
Example:
1var PJV=require('@teamteanpm2024/perspiciatis-nesciunt-excepturi').PJV; 2PJV.validate(data, spec, options)
Example1:
1 var PJV=require('@teamteanpm2024/perspiciatis-nesciunt-excepturi').PJV; 2 let text=JSON.stringify({ 3 "name": "packageJsonValidator", 4 "version": "0.1.0", 5 "private": true, 6 "dependencies": { 7 "date-fns": "^2.29.3", 8 "install": "^0.13.0", 9 "react": "^18.2.0", 10 "react-chartjs-2": "^5.0.1", 11 "react-dom": "^18.2.0", 12 "react-material-ui-carousel": "^3.4.2", 13 "react-multi-carousel": "^2.8.2", 14 "react-redux": "^8.0.5", 15 "react-router-dom": "^6.4.3", 16 "react-scripts": "5.0.1", 17 "redux": "^4.2.0", 18 "styled-components": "^5.3.6", 19 "web-vitals": "^2.1.4" 20 }, 21 "scripts": { 22 "start": "react-scripts start" 23 }, 24 "eslintConfig": { 25 "extends": [ 26 "react-app", 27 "react-app/jest" 28 ] 29 }, 30 "browserslist": { 31 "production": [ 32 ">0.2%", 33 "not dead", 34 "not op_mini all" 35 ], 36 "development": [ 37 "last 1 chrome version", 38 "last 1 firefox version", 39 "last 1 safari version" 40 ] 41 } 42 }) 43 const data=PJV.validate(text)
Output for above example
1console.log(data) 2// { 3// valid: true, 4// warnings: [ 5// 'Missing recommended field: description', 6// 'Missing recommended field: keywords', 7// 'Missing recommended field: bugs', 8// 'Missing recommended field: licenses', 9// 'Missing recommended field: author', 10// 'Missing recommended field: contributors', 11// 'Missing recommended field: repository' 12// ], 13// recommendations: [ 14// 'Missing optional field: homepage', 15// 'Missing optional field: engines' 16// ] 17}
Please check out the existing issues, and if you don't see that your problem is already being worked on, please file an issue.
Since you are probably a developer, you can probably just make the change yourself and submit a pull request
See LICENSE
No vulnerabilities found.
No security vulnerabilities found.