Skip to content

Commit

Permalink
update package
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Aug 29, 2014
1 parent d6ca1dc commit a102720
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 14 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
@@ -1,6 +1,8 @@
node_js:
- "0.8"
- "0.10"
- "0.11"
language: node_js
script: "npm run-script test-travis"
after_script: "npm install coveralls@2.10.0 && cat ./coverage/lcov.info | coveralls"
before_install: "npm update -g npm"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
31 changes: 21 additions & 10 deletions README.md
@@ -1,19 +1,13 @@
# Stream to Array

[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
[![Dependency Status][david-image]][david-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![Gittip][gittip-image]][gittip-url]

[npm-image]: https://img.shields.io/npm/v/stream-to-array.svg?style=flat
[npm-url]: https://npmjs.org/package/stream-to-array
[travis-image]: https://img.shields.io/travis/stream-utils/stream-to-array.svg?style=flat
[travis-url]: https://travis-ci.org/stream-utils/stream-to-array
[coveralls-image]: https://img.shields.io/coveralls/stream-utils/stream-to-array.svg?style=flat
[coveralls-url]: https://coveralls.io/r/stream-utils/stream-to-array?branch=master
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat
[gittip-url]: https://www.gittip.com/jonathanong/

Concatenate a readable stream's data into a single array.

You may also be interested in:
Expand Down Expand Up @@ -65,3 +59,20 @@ var stream = new Stream.Readable()
var arr = yield toArray(stream)
var buffer = Buffer.concat(arr)
```

[npm-image]: https://img.shields.io/npm/v/stream-to-array.svg?style=flat-square
[npm-url]: https://npmjs.org/package/stream-to-array
[github-tag]: http://img.shields.io/github/tag/stream-utils/stream-to-array.svg?style=flat-square
[github-url]: https://github.com/stream-utils/stream-to-array/tags
[travis-image]: https://img.shields.io/travis/stream-utils/stream-to-array.svg?style=flat-square
[travis-url]: https://travis-ci.org/stream-utils/stream-to-array
[coveralls-image]: https://img.shields.io/coveralls/stream-utils/stream-to-array.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/stream-utils/stream-to-array?branch=master
[david-image]: http://img.shields.io/david/stream-utils/stream-to-array.svg?style=flat-square
[david-url]: https://david-dm.org/stream-utils/stream-to-array
[license-image]: http://img.shields.io/npm/l/stream-to-array.svg?style=flat-square
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/stream-to-array.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/stream-to-array
[gittip-image]: https://img.shields.io/gittip/jonathanong.svg?style=flat-square
[gittip-url]: https://www.gittip.com/jonathanong/
2 changes: 1 addition & 1 deletion index.js
@@ -1,5 +1,5 @@

var Promise = require('bluebird')
var Promise = require('native-or-bluebird')

module.exports = function (stream, done) {
if (!stream) {
Expand Down
10 changes: 9 additions & 1 deletion package.json
Expand Up @@ -11,9 +11,10 @@
"license": "MIT",
"repository": "stream-utils/stream-to-array",
"dependencies": {
"bluebird": "2"
"native-or-bluebird": "1"
},
"devDependencies": {
"bluebird": "2",
"mocha": "1",
"istanbul": "0"
},
Expand All @@ -24,5 +25,12 @@
},
"files": [
"index.js"
],
"keywords": [
"stream",
"streams",
"buffer",
"array",
"concat"
]
}
2 changes: 1 addition & 1 deletion test.js → test/index.js
Expand Up @@ -4,7 +4,7 @@ var stream = require('stream')
var path = require('path')
var fs = require('fs')

var toArray = require('./')
var toArray = require('..')

var file = path.join(__dirname, 'index.js')

Expand Down

0 comments on commit a102720

Please sign in to comment.