Socket
Book a DemoInstallSign in
Socket

@fyresite/jsonl

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fyresite/jsonl

A simple JSONL class that handles parsing and stringifying

latest
npmnpm
Version
1.0.1
Version published
Maintainers
7
Created
Source

jsonl

A simple JSONL class that handles parsing and stringifying

Installation

npm install @fyresite/jsonl

or

yarn add @fyresite/jsonl

Usage

const { readFile, writeFile } = require("fs/promises");
const JSONL = require("@fyresite/jsonl");

const jsonlFile = await readFile("example.jsonl");

const jsonl = JSONL.parse(jsonlFile);
jsonl.push({ foo: "bar" });

const jsonlString = JSONL.stringify(jsonl);

await writeFile("updated-example.jsonl", jsonlString);

FAQs

Package last updated on 20 Jul 2023

Did you know?

Socket

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.

Install

Related posts