new-from
Modern version of dominictarr's from
Last updated 13 years ago by andrewwinterman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install new-from 
SYNC missed versions from official npm registry.

new-from

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

API:

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])

Current Tags

  • 0.0.3                                ...           latest (13 years ago)

2 Versions

  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (1)
Dev Dependencies (0)
None

Copyright 2013 - present © cnpmjs.org | Home |