@mapbox/check-file-dependencies

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

Stats

StarsIssuesVersionUpdatedCreatedSize
@mapbox/check-file-dependencies
023.2.12 years ago5 years agoMinified + gzip package size for @mapbox/check-file-dependencies in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.