
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
json-nd is a module that provides functions to parse and stringify newline-delimited JSON (NDJSON) data.
NdJson is a utility class for parsing and stringifying newline-delimited JSON (NDJSON) data.
npm install json-nd
import { NdJson } from 'json-nd';
const data = `
{"name":"John","age":30}
{"name":"Jane","age":25}
{"name":"Bob","age":40}
`;
const parsedData = NdJson.parse<{ name: string, age: number }>(data);
console.log(parsedData);
// Output: [{ name: 'John', age: 30 }, { name: 'Jane', age: 25 }, { name: 'Bob', age: 40 }]
import { NdJson } from 'json-nd';
const jsonData = [
{ name: 'John', age: 30 },
{ name: 'Jane', age: 25 },
{ name: 'Bob', age: 40 }
];
const ndjsonData = NdJson.stringify(jsonData);
console.log(ndjsonData);
// Output:
// {"name":"John","age":30}
// {"name":"Jane","age":25}
// {"name":"Bob","age":40}
NdJson.parse<T>(data: string): T[]Parses NDJSON data into an array of objects of type T.
data: The NDJSON data to parse.T parsed from the NDJSON data.NdJson.stringify(data: any[]): stringConverts an array of objects into NDJSON format.
data: The array of objects to stringify.This project is licensed under the BSD-3-Clause.
FAQs
json-nd is a module that provides functions to parse and stringify newline-delimited JSON (NDJSON) data.
The npm package json-nd receives a total of 13,264 weekly downloads. As such, json-nd popularity was classified as popular.
We found that json-nd demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.