{"_id":"npm-audit-check","_rev":"34-a34a16c483f5a80a342c344393a191d4","name":"npm-audit-check","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"npm-audit-check","version":"1.0.0","author":"","license":"Apache 2.0","_id":"npm-audit-check@1.0.0","maintainers":[{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"}],"homepage":"https://github.com/simplyhealth/npm-audit-check#readme","bugs":{"url":"https://github.com/simplyhealth/npm-audit-check/issues"},"bin":{"npm-audit-check":"./cli.js"},"dist":{"shasum":"49cdcc6698738861ee6dc8212c2ebaef739a9307","tarball":"https://registry.npmjs.org/npm-audit-check/-/npm-audit-check-1.0.0.tgz","fileCount":4,"integrity":"sha512-7aQbqXruDl/+w/rDWOjlVSDloylAKAuPJkEtfBu39MgEokDGn0xysmtPNjp+wA3kHVELGzCI/vFoyhAzGjHq1w==","signatures":[{"sig":"MEYCIQCwd9Y3vCr9uPcm6oJ1EkrHRx1wudT9yeyp1s+j6K1hSQIhAPlsbqFx1Mm4+aduNN7+FR0r2bLzHAmQgoBY5eiAuEZg","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6XKJCRA9TVsSAnZWagAAOAEP/RkqVp/LW3X/8S+0gRGl\nmiFQQLEWDfdhulERtmBcpUgZnQL68sAy4b3tLEKDGbY2uVGQT58tYNWV9px1\nJbdtp15kiRa3xeScau1H4B2A4RkMAoDAWwH8gjMDC6sS0PN3/QTsvKtM/4zJ\nmDllq8/O3mPBhGG60APmRdcemZd2x2di2M3R+kY2YoKZTNTfa6E2nTdSYDpM\ntwRarFIb6UNZ7y/47criBr3sVayq3VME3Y4nPXHs+cWLOZ028UDjNIApAD9A\nr5kuVrCDtg9gANt5Xj7C8II6iUfrtoKw15/NgPh7IXHyXfY3hKUlqkv85L7a\nXyBxnE83Mg0h1M08TbXitVO7s0lNcLCfkZe4pt9FUXZSSu8pJyz4EDRdJK5L\nRcAStE6WadIRJ0xfzaioUw+/BTZW/sSKL6JU0v7rMF9FaSXd/bOfriji7xk+\n2tQrBDlviriieFaUNN6SluoSGktmol47x6J8JltmyGU/XfpXq1lbSGCyN7H/\ns0XUGknwvXCDa7xE8Dv4m44JzDMFPO2VjDnsU4yJBLl/uYMhjCqGoZrqLOaq\nXRrFVLiKMCDMg7RhOOvwjER8HV6vobQjTSHClG2xoRf542WGroAfBoECKzQ8\nLvxdrbg2njXzb4IzwWCfNcPSzYqe07LczIPbJlgLHotGddeWzS/fU3EMPxzJ\nJHIP\r\n=NyoU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"18b711edecfc70dd600294c7b6f1c250553b576d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"},"repository":{"url":"git+https://github.com/simplyhealth/npm-audit-check.git","type":"git"},"_npmVersion":"6.1.0","description":"Enforces npm audit policies","directories":{},"_nodeVersion":"10.1.0","dependencies":{"commander":"^2.19.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/npm-audit-check_1.0.0_1542025864495_0.3522212251832326","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"npm-audit-check","version":"1.0.1","author":"","license":"Apache 2.0","_id":"npm-audit-check@1.0.1","maintainers":[{"name":"anthonylerpiniere","email":"Anthony.lerpiniere@gmail.com"},{"name":"bgower","email":"BELINDA.GOWER@SIMPLYHEALTH.CO.UK"},{"name":"cchalke","email":"chris.chalke@simplyhealth.co.uk"},{"name":"jdalcorn","email":"Jacqueline.D'Alcorn@simplyhealth.co.uk"},{"name":"jelowres","email":"jo.lowres@simplyhealth.co.uk"},{"name":"josephh","email":"josephh@rocketmail.com"},{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"},{"name":"prashantthakur","email":"prashant.thakur@simplyhealth.co.uk"},{"name":"rmulye","email":"rachana.mulye@simplyhealth.co.uk"},{"name":"simplyhealth-admin","email":"cloud.admin@simplyhealth.co.uk"},{"name":"tomwall43","email":"thomas.wallbridge@simplyhealth.co.uk"}],"homepage":"https://github.com/simplyhealth/npm-audit-check#readme","bugs":{"url":"https://github.com/simplyhealth/npm-audit-check/issues"},"bin":{"npm-audit-check":"./cli.js"},"dist":{"shasum":"ef21698c9cdb1592069a8dd40db93dbe1ec6cece","tarball":"https://registry.npmjs.org/npm-audit-check/-/npm-audit-check-1.0.1.tgz","fileCount":4,"integrity":"sha512-eAaSiJmvJUMQtp7NgjJLB160gC9Y+YWPelcZUFjf8m0689UUDVarKwuUkvjVO6twL1+pyvzxXNFWZ2Ee5/JEwQ==","signatures":[{"sig":"MEYCIQDam/8kgSEbtyKr0b8emPjngwV2ImJ+s1pf/4PDaik3XwIhALF6Ze3jQY2jrprWbelD3rCZnE/9oAnQiPo9drXSefbK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6ZJkCRA9TVsSAnZWagAA79oP/A2fXIRF9IH7mOj8ZEFq\naGoEK3NAHmsJR9zaV55KOzcRcVPck7xd0KYRkg51boguzuzjywnszZyupler\nofrakKGrMOYaoazWjQVQsqpQql3GtrE4TME5O+loN07/BJDyH+avW3uaMQ1z\nO/EYzmmVU13aIMa2jf1fujBGF3pdjFyIdAiwRfSTsQpSteG94ZjpzEIbHjMt\n9BUheN1AlvMoppS2rUnRWriHghfQBbiVhwlwQCZ/sSP623m6byI0Q/4kzpBz\n4PJODwYY8TATecr8VQnn6QGJaQLTBnTGadsQZ3ifWfrglXGYS7dTC5phBulx\nEJAXBS5ZE1KmSqL8Xo6wwO6DtEMdAJMZ/za46uW918fx7BECmubyHCwdf05v\n/QrsjG9CHtD6aRRFzn8xzPm56wDNJvvFEH2G7wRIJDvog62474RAmfd1slcz\n5pX0JIxDlnFqXDQeagtARYflSG5nRgB9OPbw+t1h9eUvZ0lnidb/pQrH3Sw4\nhovnU1IVnjN+PqhMORPGhadUbJaIqTbe3kBwMpBpNwVxyYQYa78td0uyYO8A\ndfu3luqRgUFIFqJjxELEKdhc2KUwoI5M39M3uktnbd9zKxDLJPTeiKODE0GK\nSbNW1iurcOgNMczYMvQcdjlgaHCi+AodgS8IYiyisyb3AgE+DZC2NLjLdjAj\nwjz1\r\n=+isT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"18b711edecfc70dd600294c7b6f1c250553b576d","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"cchalke","email":"chris.chalke@simplyhealth.co.uk"},"repository":{"url":"git+https://github.com/simplyhealth/npm-audit-check.git","type":"git"},"_npmVersion":"6.4.1","description":"Enforces npm audit policies","directories":{},"_nodeVersion":"8.9.1","dependencies":{"commander":"^2.19.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/npm-audit-check_1.0.1_1542034019483_0.00548760759118383","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"npm-audit-check","version":"1.0.2","keywords":["audit","security","vulnerabilities","check","build","script"],"author":"","license":"Apache 2.0","_id":"npm-audit-check@1.0.2","maintainers":[{"name":"anthonylerpiniere","email":"Anthony.lerpiniere@gmail.com"},{"name":"bgower","email":"BELINDA.GOWER@SIMPLYHEALTH.CO.UK"},{"name":"cchalke","email":"chris.chalke@simplyhealth.co.uk"},{"name":"jdalcorn","email":"Jacqueline.D'Alcorn@simplyhealth.co.uk"},{"name":"jelowres","email":"jo.lowres@simplyhealth.co.uk"},{"name":"josephh","email":"josephh@rocketmail.com"},{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"},{"name":"prashantthakur","email":"prashant.thakur@simplyhealth.co.uk"},{"name":"rmulye","email":"rachana.mulye@simplyhealth.co.uk"},{"name":"simplyhealth-admin","email":"cloud.admin@simplyhealth.co.uk"},{"name":"tomwall43","email":"thomas.wallbridge@simplyhealth.co.uk"}],"homepage":"https://github.com/simplyhealth/npm-audit-check#readme","bugs":{"url":"https://github.com/simplyhealth/npm-audit-check/issues"},"bin":{"npm-audit-check":"./cli.js"},"dist":{"shasum":"c04a0abbe34adce37b9a61455272455692e518a5","tarball":"https://registry.npmjs.org/npm-audit-check/-/npm-audit-check-1.0.2.tgz","fileCount":4,"integrity":"sha512-XmspaMfF8RVqm5J06OEEjCbEpyMd5gxr3yn52/tvXlTl6S1UEBkWml9xmsD5TA4cC3+CJdOyLGIcJUdvJPQ8uQ==","signatures":[{"sig":"MEUCIBdqpXvQaD5lYOcuZ+o0yGZNtzfOxpfnJv1Y2FU5uyYGAiEAgIRnhgOBoW4E/jifJ/UFVW5xyl/lVUFeYR5fsEyVvrA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16482,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6ZXoCRA9TVsSAnZWagAAs/gP/1vdhmd4coRdOAbfbYLe\nrN89nl4E1slSD8RLIcqrjOsNnaTuAlmKRseNlcX/70q4YA3o9kGUAzYBh34F\nzEVpJaZTICy07+sIIUZWdjfAcRLfZhUFUJUKmakPGYTfXbmfAYaEa9JOscNB\ne5VXXdDp0J7aHlbolZBmPdePiewCUIYzva2zt/7L+ieS9PASvE03Q1Jb1u2i\nz3PXHCtUG1uglotMLMvrO9uhZkGbwObv1qbYyuUdVFW2GTIPz04lDVpKYyAP\nFNM/tt0GfvpBknrtw2g3hom9Duyt8UEebfVjtB13JWj0vKMNz1/BFmYptF0i\ng1/KxxmWHs/y6dksL+6Q/OGpJbjaPSUP0+80Iax9oqKmrpTbSrW/DnnRqW4l\nRvUMT+wcxtHal0vrwzxG2B92HB9HmHq4phcRNsLZ6iiZS1CMNDYfleuk8m1k\nAdRcV0s/Mfn/5I++t2DYEPLAYcNcNickEo1PY+6FG5YUaDyTGOjrIKXXRiO3\ndzOuiE+wztCy1iBaHCoZ59sGXJL0a/RwhGD41/Zo+ggH5h6s5zgPKIGsVeZs\nCjCzZwSb0gHC614aad1RG8E2yS5dOFP2Wc/NnmcGZOGK/j2JsfDERw9S3PjN\nEO21/dCOBaAwbk8Ze30y7sD4ikDVmyrNRe8pkeTuprXI6yw0BvQmmjTxGWjy\nP9m7\r\n=MO6B\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"6d95c0c6b3ab03643f72bfa4bc9e4aa2fe5ef339","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"cchalke","email":"chris.chalke@simplyhealth.co.uk"},"repository":{"url":"git+https://github.com/simplyhealth/npm-audit-check.git","type":"git"},"_npmVersion":"6.4.1","description":"Enforces npm audit policies","directories":{},"_nodeVersion":"8.9.1","dependencies":{"chalk":"^2.4.1","commander":"^2.19.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/npm-audit-check_1.0.2_1542034919721_0.16174185013080278","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"npm-audit-check","version":"1.1.0","keywords":["audit","security","vulnerabilities","check","build","script"],"author":"","license":"Apache 2.0","_id":"npm-audit-check@1.1.0","maintainers":[{"name":"anthonylerpiniere","email":"Anthony.lerpiniere@gmail.com"},{"name":"bgower","email":"BELINDA.GOWER@SIMPLYHEALTH.CO.UK"},{"name":"cchalke","email":"chris.chalke@simplyhealth.co.uk"},{"name":"jdalcorn","email":"Jacqueline.D'Alcorn@simplyhealth.co.uk"},{"name":"jelowres","email":"jo.lowres@simplyhealth.co.uk"},{"name":"josephh","email":"josephh@rocketmail.com"},{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"},{"name":"prashantthakur","email":"prashant.thakur@simplyhealth.co.uk"},{"name":"rmulye","email":"rachana.mulye@simplyhealth.co.uk"},{"name":"simplyhealth-admin","email":"cloud.admin@simplyhealth.co.uk"},{"name":"tomwall43","email":"thomas.wallbridge@simplyhealth.co.uk"}],"homepage":"https://github.com/simplyhealth/npm-audit-check#readme","bugs":{"url":"https://github.com/simplyhealth/npm-audit-check/issues"},"bin":{"npm-audit-check":"./cli.js"},"dist":{"shasum":"57d2baf9d24a75bf7b36e1f3f6e06695f0a7caa7","tarball":"https://registry.npmjs.org/npm-audit-check/-/npm-audit-check-1.1.0.tgz","fileCount":5,"integrity":"sha512-ukExtCnu0OXolrxaEDIJkUNfW3n0EBTK9w+Etv5aJMuVAeKfbhHlQSv2WysliV6M1by+4laowggiobl90XrYAA==","signatures":[{"sig":"MEYCIQCpA7gPb49HJ2s7JXzS95+eMkY2MNC1/9Cc2FKf8uB7FAIhAPjHfjNtUt4Y1HAk31Qso5ucMCj/T3oJoC0bY5q1pD4T","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":18488,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6ZvfCRA9TVsSAnZWagAAsUcQAJZ5DIQgj/bXnwnhqlcJ\nBLCbS0Po6gA2GBLYHjfzpa9UHrr05N8+sEMxv6kwuksL3RxZj01SXxABSSOy\nASoOrf7Y0F9ZeM8dqKhw/YzkXvXInAe5qaRrjnqMPZ0aQfEOzj46Z0jsqGWD\nPwR6NrfcTvFd4BsZkfYiuHl90dbP8SNHXwQderRO9PkEb3xeV6tnc/1dHuCB\n9/sC+6CoP3qRQklVvvwVT7Uj/+2PQjukPb6eVKItTcFN3fqghdn6NeEwOAfZ\n6qIYR6IQu6/udwFkfwroXgZdZkKvyMBgMHFoILL5RK7OdQBk8URtthJ0uGdB\nnUfsITcTUHOKw8KOvl+H0weu4hwcMZFeVEpSrSY7TXLsL3TqkMk44cuB/jQ2\nw87koA54eUEpDe4QTWf0IA4TWdJEHSEVr1rXwftshGJSxlB9E5EvE4dxNMtw\nH8YsQAjwnp1+03rXX/S8IyMh3gNs8LVt/IpU0qCsoL2OwaEQC4PCaS8IZ4Iu\n/qOanZUZH0Y0zhIaey59eSqYfe6LBYe4fTxOVe1CdofHsppY20am2kDH2g2L\nX6taB0jiairMtCTIvpcM7VjR9q/8IpAEGbbq5Dfu9yvra/X30KR+75Y7AHby\nfT3BCFAVn1VhnUQtslMThsgn86F0bNf05RcYSn1/1apgmpKmPs2LgDUC6cRu\nu4ry\r\n=v8QN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"85374bc4ef5fa1c551c5bd9272cd3068e3917d06","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"jpeggsh","email":"james.pegg@simplyhealth.co.uk"},"repository":{"url":"git+https://github.com/simplyhealth/npm-audit-check.git","type":"git"},"_npmVersion":"6.1.0","description":"Enforces npm audit policies","directories":{},"_nodeVersion":"10.1.0","dependencies":{"chalk":"^2.4.1","lodash":"^4.17.11","commander":"^2.19.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/npm-audit-check_1.1.0_1542036446907_0.9512943244893948","host":"s3://npm-registry-packages"}}},"time":{"created":"2018-11-12T12:31:04.495Z","modified":"2025-12-01T11:56:34.514Z","1.0.0":"2018-11-12T12:31:04.626Z","1.0.1":"2018-11-12T14:46:59.612Z","1.0.2":"2018-11-12T15:01:59.850Z","1.1.0":"2018-11-12T15:27:27.003Z"},"bugs":{"url":"https://github.com/simplyhealth/npm-audit-check/issues"},"license":"Apache 2.0","homepage":"https://github.com/simplyhealth/npm-audit-check#readme","keywords":["audit","security","vulnerabilities","check","build","script"],"repository":{"url":"git+https://github.com/simplyhealth/npm-audit-check.git","type":"git"},"description":"Enforces npm audit policies","maintainers":[{"email":"cloud.admin@simplyhealth.co.uk","name":"simplyhealth-admin"},{"email":"kimberlie.ushiro@simplyhealth.co.uk","name":"kim.ushiro"},{"email":"marian.dudych@simplyhealth.co.uk","name":"marian.dudych"},{"email":"chris.chalke@simplyhealth.co.uk","name":"cchalke"},{"email":"anthony.lerpiniere@simplyhealth.co.uk","name":"anthonylerpiniere"},{"email":"james.pegg@simplyhealth.co.uk","name":"jpeggsh"}],"readme":"# npm-audit-check\nEnforces npm audit policies\n\nDesigned to be used within a build process to interrogate the output from ```npm audit --json``` and return an error exit code if any of the vulnerability levels are higher than those specified.\n\n## Use\n\n```bash\nnpm-audit-check [options]\n```\n\n| Option | Optional? | Use |\n| ------ | --------- | --- |\n| -V, --version | Yes | output the version number\n| -i, --info <info policy> | Yes | Set the maximum number of info vulnerabilities allowed |\n| -l, --low <low policy>  | Yes | Set the maximum number of low vulnerabilities allowed |\n| -m, --moderate <moderate policy> | Yes | Set the maximum number of moderate vulnerabilities allowed |\n| -h, --high <high policy> | Yes | Set the maximum number of high vulnerabilities allowed |\n| -c, --critical <critical policy> | Yes | Set the maximum number of critical vulnerabilities allowed |\n| -t, --test | Yes | Report on level of vulnerabilities but return a success exit code |\n| --help | Yes | Output usage information |\n\nYou can also create a `.auditrc` file with your security policy or add it to your `package.json` file;\n\n### .auditrc\n```json\n{\n  \"policy\": {\n    \"critical\": 10,\n    \"high\": 5\n  }\n}\n```\n\n### package.json\n```json\n...\n  \"audit\": {\n    \"policy\": {\n      \"critical\": 10,\n      \"high\": 5\n    }\n  }\n```\n\n**Note:** The security policy is resolved in the following priority; command line arguments > `package.json` > `.auditrc`\n\n**Note:** Not specifying any maximum vulnerabilities, will mean that npm-audit-check will not perform any checks.\n\n### Examples\n```bash\nnpm-audit-check --critical 0\n```\nThis will return an exit code set to 1 (error) if npm audit reports any critical vulnerabilities\n\n```bash\nnpm-audit-check --critical 0 --high 5 --moderate 20\n```\nThis will return an exit code set to 1 (error) if npm audit reports any critical vulnerabilities or more than 5 high vulnerabilities or more than 20 moderate vulnerabilities.\n\n```bash\nnpm-audit-check --critical 0 --high 5 --moderate 20 -t\n```\nAs above but the -t option means that the vulnerabilities will be reported but the check will return an exit code set to 0 (success)\n\n### Sample Output\n#### Failure\n```\nnpm-audit-check --low 0 --moderate 0 --high 0 --critical 0\nThere are 672 low vulnerabilities which is more than your allowed policy of 0\nThere are 36 moderate vulnerabilities which is more than your allowed policy of 0\nThere are 20 high vulnerabilities which is more than your allowed policy of 0\nThere are 5 critical vulnerabilities which is more than your allowed policy of 0\n---------------------------------\nRun npm audit to get more details\n---------------------------------\n```\n\n#### Success\n```\nnpm-audit-check --critical 10\n---------------------------------------------------\nNo vulnerabilities found above the levels specified\n---------------------------------------------------\n```\n","readmeFilename":"README.md"}