Fast checking of top level dependencies based on version numbers
Fast checking of top level NPM and Bower dependencies based on version numbers.
See grunt-deps-ok for integrating this task into grunt pipeline.
Install as a global tool
npm install -g deps-ok
Install as a project's dependency
npm install --save-dev deps-ok
Checks modules until the first module without valid install. Prints first found error and exits with code 1 if one of the top level dependencies is missing or out of date.
// from the package's root folder execute deps-ok deps-ok --verbose // prints declared and installed version numbers deps-ok --filename path/to/package.json // checks give package.json (not in this folder)
Checks both dependencies listed in your package.json and bower.json
If deps-ok finds a problem, then run
npm install or
You can use deps-ok from another module
npm install deps-ok --savevar depsOk = require'deps-ok';var ok = depsOkprocesscwd false /* verbose */;
If you prefer using gulp, you can quickly just add a task
gulptask'deps-ok'var gutil = require'gulp-util';var depsOk = require'deps-ok';var ok = depsOkprocesscwd false /* verbose */;if !okgulpemit'error' 'deps-ok' 'Found outdated installs';;gulptask'default' 'deps-ok' ;
Author: Gleb Bahmutov © 2013
License: MIT - do anything with the code, but don't blame me if it does not work.
Support: if you find any problems with this module, email / tweet / open issue on Github