# read-file-stdin

> Read from a file, falling back to stdin.

Latest version **0.2.1** (published 2016-01-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install read-file-stdin
pnpm add read-file-stdin
yarn add read-file-stdin
bun add read-file-stdin
```

## 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.2.1 |
| Published | 2016-01-21 |
| First published | 2013-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 14 |
| Maintainers | ianstormtaylor, dominicbarnes |
| Keywords | read, file, stdin, buffer |

## Links

- npm: https://www.npmjs.com/package/read-file-stdin
- Repository: https://github.com/ianstormtaylor/read-file-stdin
- Issues: https://github.com/ianstormtaylor/read-file-stdin/issues
- npm.io page: https://npm.io/package/read-file-stdin

## Dependencies (1)

- [gather-stream](https://npm.io/package/gather-stream.md) ^1.0.0

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2016-01-21
- 0.2.0 — 2014-10-15
- 0.0.4 — 2014-05-07
- 0.0.3 — 2013-12-19
- 0.0.2 — 2013-12-19
- 0.0.1 — 2013-12-19

## README

# read-file-stdin

  Read from a file, falling back to stdin.

## Installation

    $ npm install read-file-stdin

## API

### read ([file], callback)

  Read from a `file`, falling back to stdin, and `callback(err, buffer)`.

## License

  MIT

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