Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

scan-for-secrets

2.0.3 • Public • Published

An NPM package which scans a given directory for the inclusion of AWS keys.

Requires

Node 8+

Installation

  1. Install package

    npm install --save-dev scan-for-secrets
  2. Add the script to package.json with the directory in which you want to scan for keys

    {
      "scripts" : {
        "scan-for-secrets": "scan-for-secrets <directory-to-scan>",
        ...
      }
      ...
    }
  3. Add to pre-commit hook in package.json (optional)

    {
        "pre-commit": [
          "scan-for-secrets"
        ],
    }

Install

npm i scan-for-secrets

DownloadsWeekly Downloads

15

Version

2.0.3

License

MIT

Unpacked Size

8.41 kB

Total Files

10

Last publish

Collaborators

  • avatar