Skip to content

daniel-dia/jsonl-parse-stringify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSONL parse stringify

Parse and interact with JSONL same way as you interact to JSON to parse and stringify.

installation

npm install jsonl-parse-stringify --save

Usage

Typescript

import JSONL from "jsonl-parse-stringify";

const parsed: MyType[] = JSONL.parse<MyType>(myJsonlString);
const stringified: string = JSONL.stringify(myArray);

Plain Javascript

const JSONL = require("jsonl-parse-stringify");

const parsed = JSONL.parse(myJsonlString);
const stringified = JSONL.stringify(myArray);

About

A simple typescript JSONL Parse and Stringify util

Resources

Stars

Watchers

Forks

Packages

No packages published