node-require-check

💥✅ Checks that a given module is able to be required without any errors occurring.

Downloads
22
Stars
1
Committers
3

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:

  1. Install all the npm dependencies in a tmp directory
  2. 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.