inspectdep

0.2.1 • Public • Published

inspectdep 🔎

npm version Maintenance Status

An inspection tool for dependencies in node_modules.

API

findProdInstalls({ rootPath })

Find on-disk locations of all production dependencies in node_modules.

Notes:

  • This includes all dependencies and optionalDependencies, simulating what would happen during a yarn|npm install --production.
  • Paths are relative to rootPath and separated with path.sep native OS separators
  • If dependencies are not found installed on-disk they are simply ignored. #2

Parameters:

  • rootPath (string): node_modules root location (default: process.cwd())
  • curPath (string): location to start inferring dependencies from (default: rootPath)

Returns:

  • (Promise<Array<String>>): list of relative paths to on-disk dependencies

Maintenance Status

Active: Formidable is actively working on this project, and we expect to continue for work for the foreseeable future. Bug reports, feature requests and pull requests are welcome.

Package Sidebar

Install

npm i inspectdep

Weekly Downloads

18,905

Version

0.2.1

License

MIT

Unpacked Size

19 kB

Total Files

11

Last publish

Collaborators

  • scottianstewart
  • keithluchtel
  • ceceppa
  • robwalkerco
  • sarahformidable
  • scott-rippey
  • michaelmerrill
  • sarmeyer
  • mariano-formidable
  • ryan.roemer
  • formidable-owner
  • formidablelabs
  • carbonrobot
  • masiddee
  • tracing-ci