JSPM

jsonl-parse-stringify

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 49484
  • Score
    100M100P100Q160907F
  • License MIT

A simple typescript JSONL Parse and Stringify util

Package Exports

  • jsonl-parse-stringify
  • jsonl-parse-stringify/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jsonl-parse-stringify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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);