0.2.2 • Published 5 years ago

@frosti/asguard v0.2.2

Weekly downloads
14
License
-
Repository
github
Last release
5 years ago

Asguard

Automated check to use as a guard against security risks and unused, missing or outdated dependencies.

Can be used standalone, but is highly customized for use by Frosti Boilerplates.

Scan For Security Vulnerabilities

Utilizes npm audit to scan project dependencies for any know vulnerabilities.

Find Unused, Missing & OUt Of Date Dependencies

Uses depcheck to look for any missing or unused dependencies in your projects package.json file.

Usage

Install

As a Module
$ npm install @frosti/asguard
Globally
$ npm install @frosti/asguard -g

Automated scanning

The recommended usage is as an npm script in conjunction with something like Husky to automatically run before pushing any code into source control:

{
  "scripts": {
    "check": "asguard"
  },
  "husky": {
    "hooks": {
      "pre-push": "npm run check"
    }
  },
}

Manual scanning

If you prefer to just run your checks manually, you can also simply run Asguard directly:

Installed globally
$ asguard
Installed as a module
$ npx asguard

Options

Warn Only

By default Asguard will throw an error and exit with process.exit(1) if it encounters any problems.

If you would prefer to just show a warning instead of throwing an error, you can use the --warn flag.

$ asguard --warn
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago