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

@debitoor/parse-dependencies

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@debitoor/parse-dependencies

finding node code dependencies

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
35
increased by218.18%
Maintainers
1
Weekly downloads
 
Created
Source

parse-dependencies

Fast and easy way to get dependencies for your code.

npm version Build Status Dependency Status devDependency Status Coverage Status

Install

npm i -SE @debitoor/parse-dependencies

Usage

const parse = require('@debitoor/parse-dependencies');
parse(__dirname + '/server.js', function (err, deps) {
  console.log(deps); // 'express', 'body-parser' ...
});

You can compare result with you production dependencies

const parse = require('@debitoor/parse-dependencies');
const packageDeps = require('./package').dependencies;

parse(__dirname + '/server.js', function (err, deps) {
  const diff = deps.filter(function (item) {
    return !(item in packageDeps);
  });
  if (diff.length) {
    console.log('oops. You have missing depencies\n%s', diff.join());
  }
});

Keywords

FAQs

Package last updated on 21 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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