New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

jsonarrayfs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsonarrayfs - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "jsonarrayfs",
"version": "1.0.0",
"version": "1.0.1",
"description": "A Node.js library to stream JSON array elements from files in custom-sized chunks and effortlessly append data to existing arrays.",

@@ -5,0 +5,0 @@ "exports": {

@@ -21,3 +21,3 @@ # jsonarrayfs <img src="https://img.shields.io/npm/dm/jsonarrayfs" />

// Create a streamer to read JSON array elements from a file
const streamer = await createReadStream("./data.json");
const streamer = await createReadStream("./data.json", { encoding: 'utf-8' });

@@ -42,3 +42,3 @@ // Stream JSON array elements in batches of 100

// Append new data to the existing JSON array file
await appendFile("./data.json", ...newData);
await appendFile("./data.json", 'utf-8', ...newData);
```

@@ -45,0 +45,0 @@