aud

Use `npx aud` instead of `npm audit`, whether you have a lockfile or not!

As of npm v10.2, `npm audit` works without a lockfile! As such, this project is EOL. Please replace it with `npx npm@">=10.2" audit --production` or the equivalent.
Last updated 4 years ago by ljharb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install aud 
SYNC missed versions from official npm registry.

END OF LIFE

Thanks to the wonderful folks at npm, in npm v10.2+, after 6 years, npm audit no longer requires a lockfile!

Therefore, you should no longer use aud. Instead, use npx npm@'>=10.2' audit --production.


aud Version Badge

License Downloads

npm badge

Use npx aud instead of npm audit, whether you have a lockfile or not!

It's a great idea to run npm audit in CI; it ensures that you don't unknowingly have vulnerabilities in your dep graph.

Unfortunately, it doesn't work without a lockfile :crying_cat_face: and only apps should have lockfiles. It also requires npm v6 or above.

Now, instead of npm audit, you can run npx aud! If your repo has a lockfile, it will just run npm audit; if it does not, it will use npm-lockfile to copy your package.json and your currently configured audit level (npm config get audit-level) to a temp dir that has the proper version of npm installed, it will use npm install --package-lock-only to create a temporary lockfile, and it will run npm audit there. On exit, all the temp dirs will get cleaned up.

aud fix without a lockfile present will throw npm audit's normal "no lockfile" error, since there's no way to preserve fixes to transitive dependencies.

Current Tags

  • 3.0.1                                ...           latest (2 years ago)

15 Versions

  • 3.0.1 [deprecated]           ...           2 years ago
  • 3.0.0 [deprecated]           ...           2 years ago
  • 2.0.5 [deprecated]           ...           2 years ago
  • 2.0.4 [deprecated]           ...           3 years ago
  • 2.0.3 [deprecated]           ...           3 years ago
  • 2.0.2 [deprecated]           ...           4 years ago
  • 2.0.1 [deprecated]           ...           4 years ago
  • 2.0.0 [deprecated]           ...           5 years ago
  • 1.1.5 [deprecated]           ...           6 years ago
  • 1.1.4 [deprecated]           ...           6 years ago
  • 1.1.3 [deprecated]           ...           6 years ago
  • 1.1.2 [deprecated]           ...           7 years ago
  • 1.1.1 [deprecated]           ...           7 years ago
  • 1.1.0 [deprecated]           ...           7 years ago
  • 1.0.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (7)
Dependents (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE