Socket
Book a DemoInstallSign in
Socket

garlic

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

garlic

a more magical blt

latest
Source
npmnpm
Version
0.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

storm

FAQs

Package last updated on 30 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts