from-source

1.0.0 • Public • Published

from-source

Generate a stream from a source

Example

var fromSource = require("from-source")

fromSource(function (write, callback) {
    for (var count = 0; count < 5; count++) {
        write(count.toString())
    }
    callback(null, "\n")
}).pipe(process.stdout)

fromSource(function (callback) {
    callback(null, "once\n")
}, { once: true}).pipe(process.stdout)

Installation

npm install from-source

Contributors

  • Raynos

MIT Licenced

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2
  • 0.1.0
    2

Package Sidebar

Install

npm i from-source

Weekly Downloads

4

Version

1.0.0

License

none

Last publish

Collaborators

  • raynos