@mapbox/check-file-dependencies

5.0.0 • Public • Published

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

/@mapbox/check-file-dependencies/

    Package Sidebar

    Install

    npm i @mapbox/check-file-dependencies

    Weekly Downloads

    980

    Version

    5.0.0

    License

    ISC

    Unpacked Size

    8.82 MB

    Total Files

    2075

    Last publish

    Collaborators

    • mbx-npm-ci-production
    • mbx-npm-ci-staging
    • mbx-npm-advanced-actions-production
    • mbx-npm-advanced-actions-staging
    • mbx-npm-09-production
    • mbx-npm-08-production
    • mbx-npm-07-production
    • mbx-npm-06-production
    • mbx-npm-05-production
    • mbx-npm-04-production
    • mbx-npm-03-production
    • mbx-npm-02-production
    • mbx-npm-01-production
    • mbx-npm-02-staging
    • mapbox-npm-01
    • mapbox-npm-02
    • mapbox-npm-07
    • mapbox-npm-03
    • mapbox-npm-04
    • mapbox-npm-09
    • mapbox-npm-05
    • mapbox-npm-06
    • mapbox-npm-08
    • mapbox-npm-advanced-actions
    • mapbox-npm-ci
    • mapbox-npm
    • mapbox-admin
    • mapbox-machine-user