# inspectdep

> A dependency inspection tool.

Latest version **0.2.1** (published 2023-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install inspectdep
pnpm add inspectdep
yarn add inspectdep
bun add inspectdep
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: no vulnerabilities; has provenance.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2023-05-08 |
| First published | 2019-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 18.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (Unknown) |
| GitHub stars | 6 |
| Author | Ryan Roemer |
| Maintainers | scottianstewart, keithluchtel, ceceppa, robwalkerco, gksander, sarahformidable, scott-rippey, yankovalera, michaelmerrill, sarmeyer, mariano-formidable, carlospaelinck, ryan.roemer, formidable-owner, eastridge, exogen, jmcbee1, formidablelabs, carbonrobot, masiddee, tracing-ci |
| Keywords | dependencies, devDependencies, node_modules, npm, yarn |

## Links

- npm: https://www.npmjs.com/package/inspectdep
- Repository: https://github.com/FormidableLabs/tracing
- Homepage: https://github.com/FormidableLabs/tracing/tree/main/packages/inspectdep#readme
- Issues: https://github.com/FormidableLabs/tracing/issues
- npm.io page: https://npm.io/package/inspectdep

## Recent versions

- 0.2.1 (latest) — 2023-05-08
- 0.2.0 — 2019-05-28
- 0.1.3 — 2019-05-27
- 0.1.2 — 2019-05-22
- 0.1.1 — 2019-05-19
- 0.1.0 — 2019-05-17

## README

inspectdep 🔎
============

[![npm version][npm_img]][npm_site]
[![Maintenance Status][maintenance-image]](#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](https://github.com/FormidableLabs/inspectdep/issues/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

[npm_img]: https://badge.fury.io/js/inspectdep.svg
[npm_site]: http://badge.fury.io/js/inspectdep
[maintenance-image]: https://img.shields.io/badge/maintenance-active-green.svg?color=brightgreen&style=flat

## 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.

---
_Source: https://npm.io/package/inspectdep · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
