Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

gulp-npm-check

jwhitmarsh153MIT1.1.0

Gulp wrapper around npm-check

gulpplugin, npm, outdated, dependencies, unused, changelog, check, updates, api, interactive, cli, safe, updating, updater, installer, devDependencies

readme

gulp-npm-check

gulp wrapper around npm-check

Install

npm install -D gulp-npm-check

Config

The library can a config file, á la eslint/babel - simply include an .npmcheckrc that matches the config npm-check accepts, like:

{
  "skipUnused": true, // default is false
  "ignoreDev": true, // default is false
}

Or the config can be supplied to the function call, comme:

npmcheck({ skipUnused: true }, function(err){...});

Or, you can use both - in which case the inline config object with extend the .npmcheckrc

There are addtional config options:

ignore

Type: String[]

Modules to ignore if there is a version mismatch. This is for if you've had to pin a version and you don't want the plugin to throw if the latest isn't installed.

throw

Type: Bool - Default: true

If true the plugin will throw an error if there are any module mismatches, otherwise it'll just write to stdout (gutil.log).

Usage

const npmcheck = require('gulp-npm-check');
gulp.task('deps', function(cb) {
  npmcheck(cb);
});

Roadmap

  • Allow for custom reporters

changelog

1.1.0 (2016-4-11)

Chores
  • package.json: updated deps, added build scripts (92b49a60)
New Features
  • main: added config.throw option, and optional config param (155f42ea)
Other Changes