New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

linebyline

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linebyline - npm Package Compare versions

Comparing version

to
1.2.0

2

package.json
{
"name": "linebyline",
"version": "1.1.0",
"version": "1.2.0",
"description": "Simple streaming readline module.",

@@ -5,0 +5,0 @@ "main": "readline.js",

@@ -32,4 +32,6 @@ var fs = require('fs'),

if (data[i] == 10 || data[i] == 13) { // Newline char was found.
lineCount++;
if (lineLength) emit(lineCount, byteCount);
if (data[i] == 10) {
lineCount++;
emit(lineCount, byteCount);
}
} else {

@@ -36,0 +38,0 @@ lineBuffer[lineLength] = data[i]; // Buffer new line data.