Socket
Socket
Sign inDemoInstall

audit-cache

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    audit-cache

Caches the results of npm audit so it only runs if the package-lock.json changes.


Version published
Weekly downloads
1
Maintainers
1
Install size
22.3 kB
Created
Weekly downloads
 

Readme

Source

Intro

npm audit is great but...

  1. there's no way to whitelist advisories so you don't see them again, and
  2. if you run it all the time (eg: as part of CI) it'll block you.

Usage

  1. Run npx @medic/audit-dependencies audit. This will run npm audit. If you have any advisories, either fix them, or add the IDs to the permitted array in the .auditrc.json file, then run audit again.
  2. In your CI add a step for npx @medic/audit-dependencies check. This will check your package-lock.json against the one that's been verified and fail if it's changed.

Keywords

FAQs

Last updated on 18 Jul 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc