JSPM

  • Created
  • Published
  • Downloads 382972
  • Score
    100M100P100Q170562F
  • License MIT

Check for outdated, incorrect, and unused dependencies.

Package Exports

  • 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 (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

npm-check NPM version Build Status

Check for outdated, incorrect, and unused dependencies.

npm-check

npm-check

CLI

This is how you should use npm-check.

Install

$ npm install -g npm-check

Use

From any project directory that has a package.json:

$ npm-check

The result should look like the screenshot, or something nice when your packages are all up-to- and in use.

Options

There are current no command-line options.

Possible options I might add soon:

  • -g to scan globally installed packages for updates.
  • -v for verbose mode.
  • --skip-unused to skip the check for unused dependencies.
  • --skip-dev to not look at dev dependencies.

API

The API is here in case you want to wrap this with your CI toolset. It should not be considered stable. For example, I'll probably rename a bunch of these to make more sense.

var npmCheck = require('npm-check');

npmCheck(path)
  .then(result);

npmCheck(path) returns promise

result looks like this:

object of module names : data

data looks like this:

About the module

  • moduleName: name of the module.
  • homepage: url to the home page.

Versions

  • latest: latest according to the registry.
  • installed: version in node_modules.
  • packageJson: version or range in package.json.
  • devDependency: Is this a devDependency?
  • usedInScripts: Is this used in the scripts section of package.json?
  • mismatch: Is the version installed not match the range in package.json?
  • semver_validRange: Is the package.json range valid?
  • semver_valid: Is the installed version valid semver?
  • easy_upgrade: Will using npm install upgrade the module?
  • bump: What kind of bump is required to get the latest, such as patch, minor, major.
  • unused: Is this module used in the code?

Inspiration

  • npm outdated - awkward output.
  • david - does not work with private registries.
  • update-notifer - does not work with private registries.
  • depcheck - npm-check uses depcheck.

About the Author

Hello fellow developer! My name is Dylan Greene. When not overwhelmed with my two kids I enjoy contributing to the open source community. I'm a tech lead at Opower. I lead a team using Grunt and Angular to build software that successfully helps people like us use less power. Not too long ago I co-created Doodle or Die, a hilarious web game with millions of doodles that won us Node Knockout for the "most fun" category. I'm dylang on Twitter and other places.

Some of my other Node projects:

Name Description Github Stars Npm Installs
grunt-notify Automatic desktop notifications for Grunt errors and warnings using Growl for OS X or Windows, Mountain Lion and Mavericks Notification Center, and Notify-Send. 741 19,461
grunt-prompt Interactive prompt for your Grunt config using console checkboxes, text input with filtering, password fields. 209 5,184
rss RSS feed generator. A really simple API to add RSS feeds to any project. 207 14,315
shortid Amazingly short non-sequential url-friendly unique id generator. 189 4,680
xml Fast and simple xml generator. Supports attributes, CDATA, etc. Includes tests and examples. 47 21,454
grunt-attention Display attention-grabbing messages in the terminal New! 305
flowdock-refined Flowdock desktop app custom UI New! 58
observatory Beautiful UI for showing tasks running on the command line. 11 28
anthology Module information and stats for any @npmjs user New! 72
changelog Command line tool (and Node module) that generates a changelog in color output, markdown, or json for modules in npmjs.org's registry as well as any public github.com repo. 54 171
grunt-cat Echo a file to the terminal. Works with text, figlets, ascii art, and full-color ansi. New! 98
logging Super sexy color console logging with cluster support. 22 301

This list was generated using anthology.

License

Copyright (c) 2014 undefined, contributors.

Released under the MIT license.

Screenshots are CC BY-SA (Attribution-ShareAlike).


Generated using grunt-readme with grunt-templates-dylang on Monday, June 9, 2014. Bitdeli Badge Google Analytics