Skip to content

mapbox/check-file-dependencies

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

About

Takes a file path and confirms the resolved node_modules match the package.json

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 10