linerstream
Advanced tools
Comparing version 0.1.3 to 0.1.4
var Transform = require('stream').Transform | ||
var util = require('util') | ||
var os = require('os') | ||
@@ -16,3 +17,3 @@ function Liner(opts) { | ||
} | ||
var lines = data.split('\n') | ||
var lines = data.split(os.EOL) | ||
this._lastLineData = lines.splice(lines.length - 1, 1)[0] | ||
@@ -19,0 +20,0 @@ |
{ | ||
"name": "linerstream", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Split a readable stream by newline characters", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ # linerstream | ||
[![NPM](https://nodei.co/npm/linestream.png)](https://nodei.co/npm/linerstream/) | ||
[![NPM](https://nodei.co/npm/linerstream.png)](https://nodei.co/npm/linerstream/) | ||
@@ -8,0 +8,0 @@ [![Build Status](https://travis-ci.org/nisaacson/linerstream.png)](https://travis-ci.org/nisaacson/linerstream) |
var sinon = require('sinon') | ||
var fs = require('fs') | ||
var path = require('path') | ||
var os = require('os') | ||
var expect = require('chai').expect | ||
@@ -24,3 +25,3 @@ var Linerstream = require('../') | ||
expect(line).to.not.be.empty | ||
expect(line).to.not.match(/\n/) | ||
expect(line).to.not.match(/\n|\r/) | ||
} | ||
@@ -27,0 +28,0 @@ |
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
16060
67