1.1.1 • Published 5 months ago

npm-audit-plus-plus v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

NPM Audit Plus Plus

This is a tool to help report npm audit in xml format for e.g. CI/CD for gitlab.

npm audit --json | npx npm-audit-plus-plus > npm-audit-plus-plus.xml
npm audit --production --json | npx npm-audit-plus-plus > npm-audit-plus-plus.xml
npm audit --omit=dev --json | npx npm-audit-plus-plus > npm-audit-plus-plus.xml

The tool is similar to npm-audit-plus but splits npm audit execution to be able to run npm audit with custom arguments.

node version <= 14

Instead of npx you could use npm i -D npm-audit-plus-plus@latest -f to force to run it. Command has a limitation in package.json that it needs Node>16. But it seems to run fine with Node 14. Add a script to package.json:

{
  "scripts": {
    "ci:audit": "npm audit --json --production | npm-audit-plus-plus > npm-audit.junit.xml"
  }
}

Developing

  • npm i - to install dependencies
  • npm t - to parse all json files in test/fixtures. See if the changes are still valid.

Docs

1.1.1

5 months ago

1.1.0

6 months ago

1.0.14

6 months ago

1.0.13

6 months ago

1.0.12

6 months ago

1.0.11

6 months ago

1.0.10

6 months ago

1.0.9

6 months ago

1.0.8

6 months ago

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.3

6 months ago

1.0.2

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago