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

slice-file

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slice-file - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

test/data/write.txt

8

index.js

@@ -161,3 +161,3 @@ var fs = require('fs');

if (err) return cb(err);
if (bytesRead === 0) {
if (bytesRead === 0 || offset < 0) {
lines.forEach(function (xs) {

@@ -268,5 +268,5 @@ cb(null, Buffer(xs));

return tr.pipe(split())
.pipe(through(function (line) { this.queue(line + '\n') }))
;
return tr.pipe(split()).pipe(through(function (line) {
this.queue(line + '\n');
}));

@@ -273,0 +273,0 @@ function onstat (err, stat) {

{
"name": "slice-file",
"version": "0.1.3",
"version": "0.1.4",
"description": "stream file slices by line number indexes",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc