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

dependents-of

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependents-of - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

dependents-of.js

@@ -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",

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