dependents-of
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
program | ||
.version('0.0.1') | ||
.version('0.0.3') | ||
.arguments('<module> [dirs...]') | ||
@@ -34,3 +34,3 @@ .action(listDependents) | ||
if (!stats.isDirectory()) return; | ||
var files = fs.readdirSync(folder); | ||
@@ -40,3 +40,3 @@ if (files.indexOf('package.json') >= 0) { | ||
var package = JSON.parse(json); | ||
if (package.dependencies[module]) { | ||
if (package && package.dependencies && package.dependencies[module]) { | ||
table.addRow(folder, package.dependencies[module]); | ||
@@ -48,2 +48,2 @@ } | ||
console.log(table.toString()); | ||
} | ||
} |
{ | ||
"name": "dependents-of", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "quick search of npm packages in a folder to find projects dependent on a specified module", | ||
@@ -5,0 +5,0 @@ "main": "dependents-of.js", |
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
1808
38