0.0.3 • Published 9 years ago

garlic v0.0.3

Weekly downloads
34
License
MIT
Repository
github
Last release
9 years ago

garlic

Build Status npm install

Adds a little bit of magic to your blt

example

var through = require('through2')
  , garlic = require('garlic')

garlic(splitSentence)

function splitSentence() {
  return through(function(words, _, next) {
    var self = this

    words.split(' ').forEach(function(word) {
      self.push(word)
    })

    next()
  })
}

api

garlic(createStream)

  • createStream is a function that returns a stream. This function will be called for every tuple, and the returned stream will be used as the sole means of processing the data from that tuple.

notes

garlic handles anchoring your data-processing events, allowing you to write or use regular node streams as a Bolt in an Apache Storm Topology.

This is incredibly experimental and magical and untested. Tread lightly

license

MIT

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago