Socket
Book a DemoInstallSign in
Socket

grunt-dependency-check

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-dependency-check

Checks which modules you have used in your code and then makes sure they are listed as dependencies in your package.json and vice-versa

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
3
Created
Source

grunt-dependency-check Build Status

Checks which modules you have used in your code and then makes sure they are listed as dependencies in your package.json and vice-versa, using dependency-check

Issues with the output should be reported on the dependency-check issue tracker.

Install

$ npm install --save-dev grunt-dependency-check

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks

grunt.initConfig({
	dependencyCheck: {
		files: ['**/*.js'],           // same as --entry
		options: {
			package: '.',             // module folder path
			missing: true,            // same as --missing
			unused: true,             // same as --unused
			excludeUnusedDev: false,  // same as --no-dev
			ignoreUnused: [],         // same as --ignore-module
			noDefaultEntries: true    // same as --no-default-entries
		}
	}
});

grunt.registerTask('default', ['dependencyCheck']);

Options

See the dependency-check docs.

In addition you can supply a package option.

License

MIT © Sindre Sorhus

Keywords

gruntplugin

FAQs

Package last updated on 06 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts