Comparing version 0.3.0 to 0.3.1
{ | ||
"name": "depcheck", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Check dependencies in your node module", | ||
"main": "bin/depcheck", | ||
"main": "index", | ||
"bin": { | ||
@@ -7,0 +7,0 @@ "depcheck": "bin/depcheck" |
@@ -28,3 +28,3 @@ # depcheck [![build status](https://secure.travis-ci.org/rumpl/depcheck.png)](http://travis-ci.org/rumpl/depcheck) | ||
`-dev` : by default `depcheck` looks only at "dependencies", this flag will tell it to look at "devDependencies" too. | ||
`--no-dev` : by default `depcheck` looks at `dependencies` and `devDependencies`, this flag will tell it not to look at "devDependencies". | ||
@@ -31,0 +31,0 @@ Or, as a lib: |
@@ -9,4 +9,4 @@ var assert = require("should"); | ||
depcheck(absolutePath, {}, function checked(unused) { | ||
assert.equal(unused.length, 1); | ||
depcheck(absolutePath, { "withouttDev": true }, function checked(unused) { | ||
assert.equal(unused.dependencies.length, 1); | ||
done(); | ||
@@ -19,4 +19,4 @@ }); | ||
depcheck(absolutePath, {}, function checked(unused) { | ||
assert.equal(unused.length, 0); | ||
depcheck(absolutePath, { "withouttDev": true }, function checked(unused) { | ||
assert.equal(unused.dependencies.length, 0); | ||
done(); | ||
@@ -29,4 +29,4 @@ }); | ||
depcheck(absolutePath, {}, function checked(unused) { | ||
assert.equal(unused.length, 0); | ||
depcheck(absolutePath, { "withouttDev": true }, function checked(unused) { | ||
assert.equal(unused.dependencies.length, 0); | ||
done(); | ||
@@ -39,4 +39,4 @@ }); | ||
depcheck(absolutePath, {}, function checked(unused) { | ||
assert.equal(unused.length, 0); | ||
depcheck(absolutePath, { "withouttDev": true }, function checked(unused) { | ||
assert.equal(unused.dependencies.length, 0); | ||
done(); | ||
@@ -49,4 +49,4 @@ }); | ||
depcheck(absolutePath, { "withDev": true }, function checked(unused) { | ||
assert.equal(unused.length, 1); | ||
depcheck(absolutePath, { "withouttDev": false }, function checked(unused) { | ||
assert.equal(unused.devDependencies.length, 1); | ||
done(); | ||
@@ -53,0 +53,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32124