david / 7.0.2 last updated 25 days ago created on Jan 27th 2013
Install
npm install --save david
Clone
git clone git@github.com:alanshaw/david.git
dependencies
show all 304
| main |
|
async | 1.5.2 | MIT |
|
|
cli-color-tty | 2.0.0 | ISC | |
|
|
exit | 0.1.2 | MIT | |
|
|
minimist | 1.2.0 | MIT | |
|
|
npm | 3.9.4 | Artistic 2.0 |
maintainers
versions
56 total
| 7.0.2 | 25 days ago | alanshaw |
| 7.0.1 | 4 months ago | alanshaw |
| 7.0.0 | 7 months ago | alanshaw |
| 6.4.0 | 7 months ago | alanshaw |
| 6.3.0 | 7 months ago | alanshaw |
| 6.2.0 | 10 months ago | alanshaw |
| 6.1.6 | a year ago | alanshaw |
| 6.1.5 | a year ago | alanshaw |
| 6.1.4 | a year ago | alanshaw |
| 6.1.3 | a year ago | alanshaw |
| 6.1.2 | a year ago | alanshaw |
| 6.1.1 | a year ago | alanshaw |
| 6.1.0 | a year ago | alanshaw |
| 6.0.2 | a year ago | alanshaw |
| 6.0.1 | a year ago | alanshaw |
| 5.0.0 | 2 years ago | alanshaw |
| 4.1.0 | 2 years ago | alanshaw |
| 4.0.0 | 2 years ago | alanshaw |
| 3.3.1 | 2 years ago | alanshaw |
| 3.3.0 | 2 years ago | alanshaw |
| 3.2.0 | 2 years ago | alanshaw |
| 3.1.0 | 2 years ago | alanshaw |
| 3.0.0 | 2 years ago | alanshaw |
| 2.4.1 | 2 years ago | alanshaw |
| 2.4.0 | 3 years ago | alanshaw |
| 2.3.1 | 3 years ago | alanshaw |
| 2.3.0 | 3 years ago | alanshaw |
| 2.2.0 | 3 years ago | alanshaw |
| 2.1.3 | 3 years ago | alanshaw |
| 2.1.2 | 3 years ago | alanshaw |
| 2.1.1 | 3 years ago | alanshaw |
| 2.1.0 | 3 years ago | alanshaw |
| 2.0.0 | 3 years ago | alanshaw |
| 1.9.1 | 3 years ago | alanshaw |
| 1.9.0 | 3 years ago | alanshaw |
| 1.8.1 | 3 years ago | alanshaw |
| 1.8.0 | 3 years ago | alanshaw |
| 1.7.3 | 3 years ago | alanshaw |
| 1.7.2 | 3 years ago | alanshaw |
| 1.7.1 | 3 years ago | alanshaw |
| 1.7.0 | 3 years ago | alanshaw |
| 1.6.1 | 3 years ago | alanshaw |
| 1.6.0 | 3 years ago | alanshaw |
| 1.5.0 | 3 years ago | alanshaw |
| 1.4.1 | 3 years ago | alanshaw |
| 1.4.0 | 3 years ago | alanshaw |
| 1.3.0 | 3 years ago | alanshaw |
| 1.2.1 | 3 years ago | alanshaw |
| 1.2.0 | 3 years ago | alanshaw |
| 1.1.2 | 3 years ago | alanshaw |
| 1.1.1 | 3 years ago | alanshaw |
| 1.1.0 | 3 years ago | alanshaw |
| 1.0.0 | 3 years ago | alanshaw |
| 0.0.3 | 3 years ago | alanshaw |
| 0.0.2 | 3 years ago | alanshaw |
| 0.0.1 | 3 years ago | alanshaw |
readme
Node.js module that tells you when your package npm dependencies are out of date.
Getting Started
Install Node.js.
Install david:
Use:
Both getDependencies and getUpdatedDependencies return an object result,
whose keys are package names. The values are objects which contain the following properties:
required- The version required according to the manifeststable- The latest stable version availablelatest- The latest version available (including build and patch versions)
CLI
If you install David globally with npm install -g david, you can run david
in your project directory to see which dependencies are out of date.
You can also run david --global to see your outdated global dependencies.
Update to latest
To update all your project dependencies to the latest stable versions,
and save to your package.json, run:
To update a particular project dependency to the latest stable version,
and save to your package.json, run:
You can also update global dependencies to latest versions:
To update all your project dependencies to the latest versions
(including unstable versions), pass the --unstable flag:
Alternate registry
Non-npm and SCM (Git) dependencies
If you have dependencies that are not published to npm, david will print a warning message by default. To throw an error and exit, pass the error404 option:
If using david programmatically, pass error: {E404: true} in the options object.
If you have dependencies whose versions are SCM URLs, david will print a warning message by default. To throw an error and exit, pass the errorSCM option:
If using david programmatically, pass error: {ESCM: true} in the options object.
Specify package.json path
Use -p, --package to specify the path to your package.json.
Ignore dependencies
To tell david to ignore dependencies, add a david.ignore property to your package.json which lists the dependencies david should ignore. If using david programmatically you can also pass this as an option. e.g.
package.json
Release History
- 2015-11-09 v7.0.0 Update to npm@3
- 2015-10-19 v6.4.0 CLI Add
-i, --ignoreoption to ignore dependencies - 2015-10-19 v6.3.0 Ignore dependencies from
package.jsonconfig - 2015-08-08 v6.2.0 CLI Add
-p, --packageto specify package.json path - 2014-12-19 v6.0.0 Warn about unregistered or git dependencies by default
- 2014-09-22 v5.0.0 Update to semver@4.0.0
- 2014-09-22 v4.1.0 Add versions option to return all dependency versions
- 2014-09-21 v4.0.0 Update to npm@2.0.2, add rangeVersions option
- 2014-06-02 v3.3.0 CLI Add
--warn404option to print errors but not abort - 2014-03-11 v3.1.0 CLI Add
-r, --registryoption to use alternate npm registry - 2014-03-06 v3.0.0 Errors occurring whilst retrieving dependency status doesn't halt processing of other dependencies. An error object will be returned as first arg to callback, but status info for remaining dependencies will still be available (as second arg). CLI now uses loose semver version parsing. Also update npm dependency so
david updateuses "^" as per https://github.com/npm/npm/issues/4587 - 2013-10-27 v2.4.0 Removes
semverext.js. Thegtrfunction is now available insemver - 2013-10-08 v2.3.0 Support update specific modules from CLI via
david update [module] - 2013-10-01 v2.2.0 Support for
optionalDependenciesandpeerDependencies - 2013-09-16 v2.1.0 Fixed issues with latest/stable version detection
- 2013-08-25 v2.0.0 Simplification refactor to remove caching and useless events. Code style changes, performance improvements.
- 2013-08-04 v1.9.0 CLI added
--unstableflag to view/update to latest unstable dependency versions - 2013-07-30 v1.8.0 CLI added
david updateto update dependencies to latest stable versions and save to your projectpackage.json - 2013-06-27 v1.7.0 Updated to use semver 2 module. Simplified code that determines if a version is greater than a range
- 2013-03-28 v1.6.0 Use
setImmediateinstead ofprocess.nextTick. David now requires Node.js 0.10.x - 2013-03-27 v1.5.0 CLI added
--globalflag to find outdated global dependencies - 2013-03-15 v1.4.0 Allow set the maximum number of dependencies that can be stored in the cache
- 2013-03-14 v1.3.0 Added CLI support
- 2013-03-05 v1.2.0 David can now get dependency information for
devDependencies - 2013-02-07 v1.1.0 Adds
onlyStableparam togetUpdatedDependenciesto filter by dependencies that are updated and stable - 2013-02-06 v1.0.0 Return latest stable version as well as latest version (including patch and build versions). API return values changed. Events changed.
