yarn-audit-filter
v1.1.5
Published
A tool to filter yarn audit results based on advisory IDs. Compatible with Yarn 1 and Yarn 4
Readme
Yarn Audit Filter
yarn-audit-filter is a command-line tool that filters yarn audit results based on specific advisory IDs. It helps you to identify and handle advisories in your project by allowing you to focus on relevant issues.
Installation
You can install yarn-audit-filter globally using npm:
npm install yarn-audit-filterOr, if you prefer using Yarn:
yarn add yarn-audit-filter -DUsage
Filter Advisories Based on Specific IDs
If you want to filter advisories based on specific advisory IDs, you can pass them as command-line arguments:
npx filter-audit GHSA-2p57-rm9w-gvfp GHSA-876p-c77m-x2hcAdding to scripts
You can also add yarn-audit-filter to your project's scripts in package.json for easier usage:
{
"scripts": {
"filter-audit-fixed": "filter-audit GHSA-2p57-rm9w-gvfp GHSA-876p-c77m-x2hc"
}
}Yarn Version Support
yarn-audit-filter supports both Yarn version 1 and Yarn version 4. Whether your project is using the classic Yarn (v1) or the modern version (v4), this tool integrates seamlessly with both versions to provide a consistent experience.
Summary
- Global Installation: Use
npmoryarn global addcommands. - Local Installation: Use
yarn add --devand run withnpxor viapackage.jsonscripts. - Yarn Support: Compatible with Yarn 1 and Yarn 4.
This documentation provides users with options for installing yarn-audit-filter globally or locally, and also shows how to integrate it into their project’s scripts for easier usage.
