2.0.6 • Published 4 years ago

icebreaker v2.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

6 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

8 years ago

2.0.0

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.7.0

10 years ago

0.6.1

10 years ago

0.6.0

10 years ago

0.5.0

10 years ago

0.4.0

11 years ago

0.3.0

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago