4.15.125 • Published 10 months ago

@patrtorg/eveniet-numquam-harum v4.15.125

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

About

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.

Supported Specifications

Of course, there are multiple ones to follow, which makes it trickier.

Usages

Command line

npm install @patrtorg/eveniet-numquam-harum -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]

As a node library

npm install @patrtorg/eveniet-numquam-harum

Via Grunt

Have your package validate via a Grunt plugin - see grunt-nice-package

Via Gulp

Have your package validate via a gulp plugin - see gulp-nice-package

API

PJV.validate(packageData[[, spec], options])

spec is either npm, commonjs_1.0, or commonjs_1.1

options is an object with the following available:

{
    warnings: true, // show warnings
    recommendations: true // show recommendations
}

Example:

var PJV=require('@patrtorg/eveniet-numquam-harum').PJV;
PJV.validate(data, spec, options)

Example1:

 var PJV=require('@patrtorg/eveniet-numquam-harum').PJV;
 let text=JSON.stringify({
      "name": "packageJsonValidator",
      "version": "0.1.0",
      "private": true,
      "dependencies": {
        "date-fns": "^2.29.3",
        "install": "^0.13.0",
        "react": "^18.2.0",
        "react-chartjs-2": "^5.0.1",
        "react-dom": "^18.2.0",
        "react-material-ui-carousel": "^3.4.2",
        "react-multi-carousel": "^2.8.2",
        "react-redux": "^8.0.5",
        "react-router-dom": "^6.4.3",
        "react-scripts": "5.0.1",
        "redux": "^4.2.0",
        "styled-components": "^5.3.6",
        "web-vitals": "^2.1.4"
      },
      "scripts": {
        "start": "react-scripts start"
      },
      "eslintConfig": {
        "extends": [
          "react-app",
          "react-app/jest"
        ]
      },
      "browserslist": {
        "production": [
          ">0.2%",
          "not dead",
          "not op_mini all"
        ],
        "development": [
          "last 1 chrome version",
          "last 1 firefox version",
          "last 1 safari version"
        ]
      }
    })
    const data=PJV.validate(text)

Output for above example

console.log(data)
// {
//  valid: true,
//   warnings: [
//    'Missing recommended field: description',
//    'Missing recommended field: keywords',
//    'Missing recommended field: bugs',
//    'Missing recommended field: licenses',
//    'Missing recommended field: author',
//    'Missing recommended field: contributors',
//    'Missing recommended field: repository'
//  ],
//  recommendations: [
//    'Missing optional field: homepage',
//    'Missing optional field: engines'
//  ]
} 

Issues/Requests

Please check out the existing issues, and if you don't see that your problem is already being worked on, please file an issue.

Fork and Pull request

Since you are probably a developer, you can probably just make the change yourself and submit a pull request

License

See LICENSE

cjkwebastroutingnameselectrones2016linkESnextwalkingrobustspectimetoStringTagprototypesameValueZerocall-boundregular expressionmimecollectionreal-timecollection.es6$.extendwalksomedirectoryshimframeworkupES2020redirectObject.definePropertycomparejapanesesharedstableES2019chromiumcreatestringifierpyyamlparsestyleguideIteratorparsingyamlpositive@@toStringTagsymlinkunicodetypedarraysES7urlswidthTypeScriptoptionconsoleassertionchinesexdg-openinstallerbuffersfastcopyenvhasOwnesdeterministicmulti-packagefast-copyfixed-widthframerdirbusyPromisesharedarraybufferWeakSetmakemonorepoECMAScript 2015bundlerrgbObject.isfolderdependency managerInt8Arraypostcss-pluginrapidgenericsoncenegativepluginappopencolourtypeerrorsetPrototypeOfstylepropertiesnumberbyteLengthproxyiconvjsdiffthreeReflect.getPrototypeOfbannercloudtrailiteratortypescripthelpers[[Prototype]]functionsArrayBufferxhrArray.prototype.flatMapCSSpathUint32Arrayeslintpluginmrutc39fileexecutablelibphonenumberkarmaECMAScript 5package manageres2018workflowinternal slotsyntaxInt16ArrayES2015Setes7channelvaluestoragegatewayrm -frcoerciblefastifylinewraptapestringES2023exequeuerecursiveeslintrmdirspeedtelephoneflattenbufferterminalconsumeregulartermYAMLreact-hook-formtoolsvestarktypelimitwrapasyncperformantglobendersetImmediateRegExp#flagsthroattrimEndfullweaksetreact-hooksserializertypemochafull-widtheventEmitterarrayowntyped arrayfpserrorkoreancensordayjsparentsassertspinnersPushclientcommand-linevalidateECMAScript 2017callbindtypedargparseidlestreamshashprivatebundlingObservablebyteoptimistruntimeRxJStypeofinstallsesRegExp.prototype.flagsWeakMapgroupByObject.entrieshasOwnPropertyrdsESl10nfindLastIndexfindglobalform-validationconcurrencyindicatorwhatwgsqsthrottleECMAScript 2018convertJSON-SchemasettingsgettercloudfrontansiformattingeveryequalitycoreECMAScript 2022flagsfs256eventDispatchercommandurlECMAScript 2020ECMAScript 2023environmentscolorjQueryanimationairbnbidroute53argumentdotenvfullwidthpipeaccessibilityregexextraArrayBuffer.prototype.slicees5languagecachereduxlengthlogspawncolumnsintrinsicrequireconcatkinesistrimRightlook_.extendtoolkitgetintrinsicmergeiterationwordwrapratelocationspringcompilerpackage.jsontypedarrayprotoreadableweakmapcloudsearchworkerdrageast-asian-widthcloudformationelasticacherangeerrorartduplexprefixwritableequaldynamodbreducerbrowserslistescapetrimwaitcharacterjsonsimpledbECMAScript 2019assignflatMapserializeaccessormatchesRFC-6455enumerabletoArraycore-jsmetadataES6TypedArrayHyBihookformxdginvariantvisualpolyfillassertsobjMapiteratewafredactimportexportomitfetchquerystringprocessrm -rfoptimizerreadablestreamuninstallcode pointsFloat32ArraymapbrowserlistReactiveXMicrosoftECMAScript 7BigUint64ArraysuperagentschemaeditorrandomUint16ArrayemrdomawaitminimaljshintArray.prototype.containsshamdeepcloneSymbolparentshebangperformanceglaciercallfunction.lengthECMAScript 3droptrimStartchildstarterbluebirdES3testingjsavapruneES2022file systembreakjsxglobalsconfigurableES2017taskmobileestreetapphonescheme-validationreact-testing-librarydom-testing-libraryObservablesdatastructurequerycolumnloggingsequencepropertyio-tsprotobufJSONWebSocketargstsemitReactiveExtensionsjoipnpm9fast-cloneespreetesterarraysisnodejsArray.prototype.flatoutputObject.fromEntrieslistenersposesymbolgetfindupincludesArray.prototype.filterdefaultecmascriptWebSocketsqscolorsUnderscoremapreducezerosyntaxerrorreact animationcloudwatchredux-toolkitefficientString.prototype.matchAllECMAScript 2021testsidefastcloneflagutil.inspectshelles2015Object.valueslintswfuuidnopeponyfillqueueMicrotasksymlinkscharsetStreamdeep-clonenativeiamfilteres8trimLeftCSSStyleDeclarationdataviewchromeyupoffseta11yemojiargumentsString.prototype.trimdataViewnpmdeep-copywgetimmervpcreactmimetypesendpointtddttystylingvarsdescriptorscontainsArraydescriptioninputvaluesflatformatcssES8css-in-jsgraphqlmatchmodulesargvimportprivate dataquotematchAllpackagedeletejavascriptBigInt64ArrayECMAScript 6.envURLSearchParamsjestcommanderviewFloat64ArrayECMAScript 2016httpstyleshas-owntouchtakees6getoptObjectpropInt32Arraynegative zerohelperreducesorts3definei18nwordbreakdebugcall-bindobjectdebuggerlockfiletoSortedajaxslicestructuredCloneratelimitcircularfromcmdmkdirpformstraversehardlinksES5cryptojasmineAsyncIteratorserializationiemovehookslruboundObject.getPrototypeOfcloneshrinkwrapcharactersmomentbddcopyfast-deep-copyzodvariablesArrayBuffer#slicegdprbeanstalkmake dirutilityrmreadcallboundhigher-ordersuperstructes20170validdefinePropertyawesomesauceconfigfigletutilitiesprotocol-buffersfast-deep-cloneworkspace:*ES2018gesturessafejsdomstatelessentrieseventspatchcheckvalidationmkdirsdeepcopyebsagentec2batchstreams2inspectamazonextensionTypeBoxfindLastguidajvsettermime-dbmkdirforEachpromiseES2021class-validatorpusheslint-pluginresolvewaapitostringtagStyleSheetkeysregular expressionswarningsymbolsUint8ClampedArrayautoscalingexpressionwhichObject.keysprettycodesopenerparserUint8ArraydatacurldateFunction.prototype.namehttpsdeepes-abstractconcatMapgetPrototypeOfstartsnsreact poseeslintconfigenvironmentregexptypesaferequestes-shim APIformsortedpersistentinternalmodulelazykeytypanionArray.prototype.flattenlook-upes-shimsObject.assigndependenciesrfc4122xtermicu-0loggerArray.prototype.findLastnodepreserve-symlinkssearchreuseapiArray.prototype.findLastIndexcallbackbyteOffsetdifftoobjectclistringifyspinnerasciidescriptorroutestdlibSymbol.toStringTagschemeautoprefixerpostcssawspicomatchcomputed-typesextendstreamarraybuffernamegroupidentifierslastwriteprogresstextfunctionwebsite3dchaihaspackagesRxbindStreamsjsonpathES2016immutableinference__proto__styled-componentsslotutillimited
4.15.125

10 months ago

4.15.124

10 months ago

3.4.48

1 year ago

3.4.49

1 year ago

4.10.100

11 months ago

4.15.123

10 months ago

3.2.38

1 year ago

3.4.50

1 year ago

3.4.51

1 year ago

3.4.52

1 year ago

4.7.80

12 months ago

4.5.60

1 year ago

4.13.105

11 months ago

4.8.81

12 months ago

4.8.80

12 months ago

4.8.82

12 months ago

4.6.62

1 year ago

4.6.63

1 year ago

4.6.60

1 year ago

4.6.61

1 year ago

4.6.66

12 months ago

2.1.27

1 year ago

4.6.67

12 months ago

2.1.28

1 year ago

4.6.64

1 year ago

2.1.25

1 year ago

4.6.65

1 year ago

2.1.26

1 year ago

4.6.68

12 months ago

4.6.69

12 months ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

4.11.100

11 months ago

1.1.17

1 year ago

2.1.29

1 year ago

2.1.30

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

3.3.38

1 year ago

3.3.39

1 year ago

4.14.120

10 months ago

4.14.121

10 months ago

4.14.115

10 months ago

4.14.116

10 months ago

4.14.117

10 months ago

4.14.118

10 months ago

4.14.111

10 months ago

4.14.112

10 months ago

4.14.113

10 months ago

4.14.114

10 months ago

4.14.119

10 months ago

3.3.46

1 year ago

3.3.47

1 year ago

3.3.48

1 year ago

4.6.70

12 months ago

3.3.40

1 year ago

3.3.41

1 year ago

4.6.73

12 months ago

3.3.42

1 year ago

4.6.74

12 months ago

3.3.43

1 year ago

4.6.71

12 months ago

3.3.44

1 year ago

4.6.72

12 months ago

3.3.45

1 year ago

4.6.75

12 months ago

4.4.52

1 year ago

4.6.76

12 months ago

4.14.122

10 months ago

4.14.123

10 months ago

4.9.91

11 months ago

4.9.90

11 months ago

4.9.93

11 months ago

4.9.92

11 months ago

4.9.95

11 months ago

4.9.94

11 months ago

4.9.97

11 months ago

4.9.96

11 months ago

4.9.99

11 months ago

4.9.98

11 months ago

4.12.102

11 months ago

4.7.78

12 months ago

4.5.54

1 year ago

4.12.103

11 months ago

4.7.79

12 months ago

4.5.55

1 year ago

4.12.104

11 months ago

4.7.76

12 months ago

4.5.52

1 year ago

2.2.37

1 year ago

4.12.105

11 months ago

4.7.77

12 months ago

4.5.53

1 year ago

2.2.38

1 year ago

4.5.58

1 year ago

2.2.35

1 year ago

4.5.59

1 year ago

2.2.36

1 year ago

4.5.56

1 year ago

2.2.33

1 year ago

4.5.57

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

4.10.99

11 months ago

4.9.82

12 months ago

4.9.84

11 months ago

4.14.110

10 months ago

4.9.83

11 months ago

4.9.86

11 months ago

4.9.85

11 months ago

4.12.100

11 months ago

4.9.88

11 months ago

4.12.101

11 months ago

4.9.87

11 months ago

4.14.105

11 months ago

4.9.89

11 months ago

4.14.106

11 months ago

4.14.107

11 months ago

4.14.108

10 months ago

4.14.109

10 months ago

1.1.14

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago