Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

depcheck

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depcheck - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc