# require-stream

> A stream that requires modules

Latest version **0.1.0** (published 2012-10-07) · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2012-10-07 |
| First published | 2012-10-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Joseph Moniz |
| Maintainers | josephmoniz |
| Keywords | stream, modules, require |

## Links

- npm: https://www.npmjs.com/package/require-stream
- npm.io page: https://npm.io/package/require-stream

## Dependencies (1)

- [event-stream](https://npm.io/package/event-stream.md) 3.0.x

## Alternatives

- [byte-size](https://npm.io/package/byte-size.md) — 2.1M weekly downloads
- [speed-limiter](https://npm.io/package/speed-limiter.md) — 16.0K weekly downloads
- [@powersync/node](https://npm.io/package/@powersync/node.md) — 10.9K weekly downloads
- [@ledgerhq/coin-cardano](https://npm.io/package/@ledgerhq/coin-cardano.md) — 1.0K weekly downloads
- [@jayesol/jayeson.lib.streamfinder](https://npm.io/package/@jayesol/jayeson.lib.streamfinder.md) — 1.0K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2012-10-07

## README

Require stream
==============
This stream receives module paths and emits the imported modules

```javascript
var requireStream = require("require-stream");
var JSONStream    = require("JSONStream");
var eventStream   = require("event-stream");

var lineStream = eventStream.map(function(line, next) {
  next(false, line + "\n")
});

stream = requireStream();

stream.pipe(JSONStream.stringify(false)).pipe(lineStream).pipe(process.stdout);
stream.write("test");
stream.write("export");
stream.end()
```

requireStream()
---------------
The stream `requireStream()` function takes no arguments to initialize it and
it just returns an instance of a require stream that reveives module paths and
emits the imported modules

  * @returns {stream} - The module importing stream

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