Simple lightweight library built for parsing and stringifying JSONL
npm install @saiansh2525/jsonlinesJSONL (JavaScript Object Notation Lines) is a shorter
way to write a list of JSON objects. This is a simple lightweight library built for
parsing and stringifying JSONL.
:warning: This package has very minor support on browsers :warning:
Install from npm:
``sh`
npm install --save @saiansh2525/jsonlines
`html`
`javascript`
const JSONL = require('@saiansh2525/jsonlines');
You can call JSONL functions and view strings through the JSONL object.
To parse a string to a list, use JSONL.parse.JSONL
The only parameter is the string that has to be parsed.
It will return a list.
Error may occur on the scenario of invalid strings being passed in to parse.
To stringify a list into JSONL, use JSONL.stringify. The parameter is the list.
It will return a string of the list stringified.
The name of the library => "jsonlines"`.
Contributions are welcome!