1.0.5 • Published 4 years ago
require-check v1.0.5
node-require-check
Checks that a given module is able to be required without any errors occurring.
Install
npm install require-check -g
require-check <project-directory>
Use directly via npx
npx require-check <project-directory>
How
The tool will attempt to:
- Install all the npm dependencies in a tmp directory
- Require the module installed
This will ensure that the package being checked doesn't have any of the common runtime bugs like missing a package dependency, and that the package overall is require-able.