Skip to content
This repository was archived by the owner on Nov 9, 2026. It is now read-only.

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

96 watching

Forks

Latest commit

 

History

150 Commits

Folders and files

Repository files navigation

Check File Dependencies - DEPRECATED

Important

This tool/repository are being deprecated and archived. We recommend using https://www.npmjs.com/package/check-dependencies instead.

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

About

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

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

96 watching

Forks

Releases

Packages

Used by

Contributors

Languages