JSPM

gulp-npm-check

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q23660F
  • License MIT

Gulp wrapper around npm-check

Package Exports

  • gulp-npm-check

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-npm-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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