Drinks and vomits Stream contents. Promised to be really noisy.
Last updated 8 years ago by killdream .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install noisyo 
SYNC missed versions from official npm registry.

Noisyo Build Status Dependencies Status

Note that this only works in Node 0.10 now, using the new Streams.

Drinks and vomits Stream contents. Promised to be really noisy.

As you could probably guess, this is totes influenced by the Clojure core library. But more general :D


var noisyo = require('noisyo')

// Slurp takes a Stream and returns a Promise of its contents.
// Spit takes a Stream, and some contents, and returns a Promise of the
// eventual draining.

// So, why not just `.pipe()` you faggot?
// Well, these work with both Strings and Streams interchangeably.
var input = noisyo.slurp(process.stdin)
input.then(function(data) {
  noisyo.spit(fs.createWriteStream('foo.txt'), data)

// Obviously, you *will* want to use Streams directly if you're interested in
// piping between them, this is not a substitute for Streams, just a nice,
// high-level way of getting to its contents in one-shot quickly and
// asynchronously. But it will buffer the whole thing in memory, which might be
// *bad* in certain cases.


Just grab it from NPM:

$ npm install noisyo


A quick reference of the API can be built using Calliope:

$ npm install -g calliope
$ calliope build


You can run all tests using Mocha:

$ npm test


MIT/X11. ie.: do whatever you want.

Current Tags

  • 0.1.1                                ...           latest (8 years ago)

2 Versions

  • 0.1.1                                ...           8 years ago
  • 0.1.0                                ...           8 years ago
Maintainers (1)
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (2)
Dev Dependencies (5)

Copyright 2014 - 2016 © |