# new-from

> Modern version of dominictarr's from

Latest version **0.0.3** (published 2013-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install new-from
pnpm add new-from
yarn add new-from
bun add new-from
```

## 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.3 |
| Published | 2013-09-08 |
| First published | 2013-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrew Winterman |
| Maintainers | andrewwinterman |
| Keywords | from, stream, convenience |

## Links

- npm: https://www.npmjs.com/package/new-from
- Repository: https://github.com/AWinterman/new-from
- Issues: https://github.com/AWinterman/new-from/issues
- npm.io page: https://npm.io/package/new-from

## Dependencies (1)

- [readable-stream](https://npm.io/package/readable-stream.md) ~1.1.8

## 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.0.3 (latest) — 2013-09-08
- 0.0.2 — 2013-09-08

## README

# new-from

A modern version of dominictarr's from, implemented with the new stream api. 

## API:

```javascript
var from = require('new-from')

var zero_to_nine = from(make_chunk)

function make_chunk(idx) {
  if(idx < 10) {
    return idx
  }  
  return null
}

// Or, in this case:

zero_to_nine = from([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])
```

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