Package Exports
- inspectdep
- inspectdep/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (inspectdep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
inspectdep 🔎
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
dependenciesandoptionalDependencies, simulating what would happen during ayarn|npm install --production. - Paths are relative to
rootPathand separated withpath.sepnative OS separators - If dependencies are not found installed on-disk they are simply ignored. #2
Parameters:
rootPath(string):node_modulesroot 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.