0.1.2 • Published 6 years ago

webpack-nodesecurity-plugin v0.1.2

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

Webpack Node Security Plugin

Webpack plugin that runs the Node Security Platform audit on your package.json, package-lock.json or npm-shrinkwrap.json.

NOTE: Webpack plugin is a wrapper for the nodesecurity/nsp package.

Install

npm install --save-dev webpack-nodesecurity-plugin

Usage

In your webpack.config.js

var NodeSecurityPlugin = require('webpack-nodesecurity-plugin');

module.exports = {
    // ...
    plugins: [
      new NodeSecurityPlugin()
    ]
};

Options:

module.exports = {
    // ...
  plugins: [
    new NodeSecurityPlugin(options)
  ]
}

options.reporter

Type: String Default: summary

Defines the output format of the vulnerabilities report. Available (built-in) reporters:

  • table
  • summary
  • json
  • codeclimate
  • minimal

It is possible to install 3rd party reporters from npm or create your own one.

For more information, go to nodesecurity/nsp#output-reporters

options.verbose

Type: Boolean Default: false

Provide more verbose output.

options.quiet

Type: Boolean Default: false

License

MIT © Jakub hsz Chrzanowski

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago