slice-file
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -73,3 +73,6 @@ var fs = require('fs'); | ||
for (var i = 0; i < bytesRead; i++) { | ||
if (index >= start) line.push(buf[i]); | ||
if (index >= start) { | ||
if (!line) line = []; | ||
line.push(buf[i]); | ||
} | ||
@@ -76,0 +79,0 @@ if (buf[i] === 0x0a) { |
{ | ||
"name": "slice-file", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "stream file slices by line number indexes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
21122
508