Open jesse-mm opened 1 year ago
@jesse-mm There are two commands (check-audit and resolve-audit) and either can be invoked with npx.
See https://github.com/naugtur/npm-audit-resolver/issues/9#issuecomment-461136446
npx -p npm-audit-resolver check-audit
Ah I didn't know about that! Is it worth adding it to the README ?
I think it's worth adding to README.
Problem Description
Currently a global installation is required (or local) to run the audit. This is not a issue but it would helpful to run the audit using
npx
, this way CI/CD instructions can be reduced by callingnpx npm-audit-resolver
, instead of runningnpm install -g npm-audit-resolver
and afterwardsresolve-audit
.Currently running
npx npm-audit-resolver
results in the followingI think a fairly small change is required to make this happen by adding a entry in the
package.json
within thebin
entry.Let me know your thoughts about this.