stream-lines
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -57,3 +57,4 @@ var through = require('through3') | ||
? chunk | ||
: Buffer.concat([this.buffer, chunk], this.buffer.length + chunk.length); | ||
: Buffer.concat( | ||
[this.buffer, chunk], this.buffer.length + chunk.length); | ||
return cb(); | ||
@@ -68,7 +69,4 @@ } | ||
//console.dir(str); | ||
lines = str.split(this.eol); | ||
if(typeof str === 'string') { | ||
lines = str.split(this.eol); | ||
} | ||
if(this.body) { | ||
@@ -75,0 +73,0 @@ this.body = this.body.concat(lines); |
{ | ||
"name": "stream-lines", | ||
"description": "Line transform stream, reads bytes writes arrays of lines.", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"author": "muji <noop@xpm.io>", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/freeformsystems/stream-lines.git" | ||
"url": "git://github.com/tmpfs/stream-lines.git" | ||
}, | ||
@@ -15,5 +16,6 @@ "main": "lib/line-stream.js", | ||
"devDependencies": { | ||
"chai": "~1.10.0", | ||
"istanbul": "~0.3.2", | ||
"mocha": "~2.0.1" | ||
"chai": "~3.4.1", | ||
"coveralls": "~2.11.6", | ||
"istanbul": "~0.4.1", | ||
"mocha": "~2.3.4" | ||
}, | ||
@@ -30,6 +32,8 @@ "engine": [ | ||
"scripts": { | ||
"lint": "jshint . && jscs .", | ||
"docs": "npm run readme", | ||
"readme": "mdp --force -v", | ||
"test": "NODE_ENV=test mocha -- test/spec", | ||
"cover": "NODE_ENV=test istanbul cover --root ./lib _mocha -- test/spec" | ||
"cover": "NODE_ENV=test istanbul cover --root ./lib _mocha -- test/spec", | ||
"coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js" | ||
}, | ||
@@ -43,3 +47,3 @@ "mdp": { | ||
"toc": "Table of Contents", | ||
"base": "https://github.com/freeformsystems/stream-lines", | ||
"base": "https://github.com/tmpfs/stream-lines", | ||
"partial": [ | ||
@@ -46,0 +50,0 @@ { |
@@ -8,2 +8,4 @@ Table of Contents | ||
* [Test](#test) | ||
* [Cover](#cover) | ||
* [Lint](#lint) | ||
* [Documentation](#documentation) | ||
@@ -16,2 +18,6 @@ * [Readme](#readme) | ||
[<img src="https://travis-ci.org/tmpfs/stream-lines.svg" alt="Build Status">](https://travis-ci.org/tmpfs/stream-lines) | ||
[<img src="http://img.shields.io/npm/v/stream-lines.svg" alt="npm version">](https://npmjs.org/package/stream-lines) | ||
[<img src="https://coveralls.io/repos/tmpfs/stream-lines/badge.svg?branch=master&service=github&v=1" alt="Coverage Status">](https://coveralls.io/github/tmpfs/stream-lines?branch=master). | ||
Line transform stream, reads bytes writes arrays of lines. | ||
@@ -24,3 +30,3 @@ | ||
``` | ||
npm i stream-lines | ||
npm i stream-lines --save | ||
``` | ||
@@ -38,2 +44,18 @@ | ||
### Cover | ||
To generate code coverage run: | ||
``` | ||
npm run cover | ||
``` | ||
### Lint | ||
Run the source tree through [jshint](http://jshint.com/) and [jscs](http://jscs.info/): | ||
``` | ||
npm run lint | ||
``` | ||
### Documentation | ||
@@ -49,3 +71,3 @@ | ||
To build the readme file from the partial definitions (requires [mdp](https://github.com/freeformsystems/mdp)): | ||
To build the readme file from the partial definitions (requires [mdp](https://github.com/tmpfs/mdp)): | ||
@@ -58,3 +80,3 @@ ``` | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/freeformsystems/stream-lines/blob/master/LICENSE) if you feel inclined. | ||
Everything is [MIT](http://en.wikipedia.org/wiki/MIT_License). Read the [license](https://github.com/tmpfs/stream-lines/blob/master/LICENSE) if you feel inclined. | ||
@@ -65,2 +87,4 @@ Generated by [mdp(1)](https://github.com/freeformsystems/mdp). | ||
[npm]: http://www.npmjs.org | ||
[mdp]: https://github.com/freeformsystems/mdp | ||
[mdp]: https://github.com/tmpfs/mdp | ||
[jshint]: http://jshint.com/ | ||
[jscs]: http://jscs.info/ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7815
10
84
4
91