🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@mapbox/check-file-dependencies

Package Overview
Dependencies
Maintainers
28
Versions
13
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

5.0.0
latest
Source
npm
Version published
Weekly downloads
253
-33.07%
Maintainers
28
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

Contributing

  • Open a PR
    • Include changes in Changelog.md
  • Merge PR
  • Locally switch to master
    • npm version [major, minor, patch]
    • git push origin master --tags
    • npm publish

Keywords

dependencies

FAQs

Package last updated on 14 Sep 2023

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