# co-from-stream

> Create a co generator stream from a node stream

Latest version **0.0.0** (published 2014-02-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install co-from-stream
pnpm add co-from-stream
yarn add co-from-stream
bun add co-from-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.0.0 |
| Published | 2014-02-09 |
| First published | 2014-02-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Maintainers | juliangruber |

## Links

- npm: https://www.npmjs.com/package/co-from-stream
- Repository: https://github.com/juliangruber/co-from-stream
- Issues: https://github.com/juliangruber/co-from-stream/issues
- npm.io page: https://npm.io/package/co-from-stream

## Dependencies (1)

- [co-read](https://npm.io/package/co-read.md) 0.0.1

## Recent versions

- 0.0.0 (latest) — 2014-02-09

## README

# co-from-stream

  Create a [co generator stream](https://github.com/juliangruber/co-stream)
  from a [node stream](http://nodejs.org/api/stream.html).
  
  [![build status](https://secure.travis-ci.org/juliangruber/co-from-stream.svg)](http://travis-ci.org/juliangruber/co-from-stream)
  [![downloads](https://img.shields.io/npm/dm/co-from-stream.svg)](https://www.npmjs.org/package/co-from-stream)

## Usage

```js
var co = require('co');
var fs = require('fs');
var fromStream = require('co-from-stream');

co(function*(){
  var read = fromStream(fs.createReadStream('index.js'));
  
  var data;
  while (data = yield read()) console.log(data.toString());
})();
```

## API

### fromStream(stream)

  Create a co generator stream from `stream`.

## Installation

```bash
$ npm install co-from-stream
```

## License

  MIT

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