Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@mapbox/check-file-dependencies

Package Overview
Dependencies
Maintainers
230
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/check-file-dependencies

Takes a file path and checks to see if the modules it requires match the package.json

Source
npmnpm
Version
3.1.0
Version published
Weekly downloads
489
-68.21%
Maintainers
230
Weekly downloads
 
Created
Source

Check File Dependencies

Takes a file path and checks to see if the modules it requires match the package.json

Usage

var checkFileDependencies = require('@mapbox/check-file-dependencies');

checkFileDependencies(path.join(__dirname, 'path', 'to', 'file.js'), function(err) {
  if (err) console.log(err.message);
  if (err) process.exit(1);
})

Or as a CLI

check-file-dependencies ./path/to/file.js

Keywords

dependencies

FAQs

Package last updated on 24 Apr 2018

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