Skip to content

alligator-is/icebreaker

Repository files navigation

icebreaker

pull-stream based library for node.js and the browser.

Sauce Test Status

Travis NPM AppVeyor

NPM

npm install --save icebreaker

Bower

bower install icebreaker-js --save

Usage

In Node.js

var _ = require('icebreaker')
_(
  [1,2,3,4,5,'hello','world'],
  _.drain(function(i){
      console.log(i)
    },
    function(err){
      console.log('done')
    })
  )

In the Browser

<html>
<head>
  <script src="bower_components/icebreaker-js/dist/icebreaker.js"></script>
</head>
<body>
  <script>
    var _ = icebreaker
    _(
      [1,2,3,4,5,'hello','world'],
      _.drain(function(i){
        console.log(i)
      },
      function(err){
        console.log('done')
      })
    )
  </script>
  </body>
</html>

Examples

var _ = require('icebreaker')

_([ 1, 2, 3 ],
_.map(function(m) { return m * 10 }),
_.collect(function(err, data) {
  console.log(err,data)
}))

For more examples, check the test/ folder or pull-stream.

License

MIT

About

pull-stream based library for node.js and the browser.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published