Skip to content
Guard against security risks and unused dependencies
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
.editorconfig
.eslintrc
.gitignore
.npmignore
.nvmrc
.prettierrc
CHANGELOG.md
LICENSE
README.md
package-lock.json
package.json

README.md

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
You can’t perform that action at this time.