# dependency-stream

> Analyse and list all dependencies of an entrypoint as a stream

Latest version **2.4.0** (published 2026-02-03) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install dependency-stream
pnpm add dependency-stream
yarn add dependency-stream
bun add dependency-stream
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: no vulnerabilities.

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

## Facts

| | |
|---|---|
| Version | 2.4.0 |
| Published | 2026-02-03 |
| First published | 2024-01-06 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Holepunch Inc |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/dependency-stream
- Repository: https://github.com/holepunchto/dependency-stream
- Issues: https://github.com/holepunchto/dependency-stream/issues
- npm.io page: https://npm.io/package/dependency-stream

## Dependencies (6)

- [b4a](https://npm.io/package/b4a.md) ^1.6.4
- [streamx](https://npm.io/package/streamx.md) ^2.15.6
- [which-runtime](https://npm.io/package/which-runtime.md) ^1.2.1
- [bare-addon-resolve](https://npm.io/package/bare-addon-resolve.md) ^1.5.1
- [bare-module-resolve](https://npm.io/package/bare-module-resolve.md) ^1.4.4
- [sloppy-module-parser](https://npm.io/package/sloppy-module-parser.md) ^2.0.0

## Recent versions

- 2.4.0 (latest) — 2026-02-03
- 2.3.0 — 2024-11-21
- 2.2.4 — 2024-11-13
- 2.2.3 — 2024-10-03
- 2.2.2 — 2024-10-03
- 2.2.1 — 2024-10-03
- 2.2.0 — 2024-10-03
- 2.1.1 — 2024-10-03
- 2.1.0 — 2024-09-30
- 2.0.1 — 2024-02-07
- 2.0.0 — 2024-02-02
- 1.1.0 — 2024-01-07
- 1.0.0 — 2024-01-06
- 0.0.0 — 2024-01-06

## README

# dependency-stream

Analyse and list all dependencies of an entrypoint as a stream

```
npm install dependency-stream
```

## Usage

```js
const DependencyStream = require('dependency-stream')

const d = new DependencyStream(drive, {
  entrypoint: '.', // thats the entrypoint to resolve
  preload: true, // preload as much as possible
  source: false, // include source in results
  strict: false, // if true, fail if something cannot be resolved
  packages: false, // include package.json files
  conditions: [], // what conditions to apply to export maps
  builtins: setOrArray // set to the builtin modules of your runtime
})

for await (const data of d) {
  console.log(data) // the resolved dep
}
```

## License

Apache-2.0

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