Huge News!Announcing our $40M Series B led by Abstract Ventures.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.1 to 0.1.2

5

index.js

@@ -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) {

2

package.json
{
"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",

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