https://github.com/yash-singh1/jsonlines
Handle JSONL
https://github.com/yash-singh1/jsonlines
Last synced: about 2 months ago
JSON representation
Handle JSONL
- Host: GitHub
- URL: https://github.com/yash-singh1/jsonlines
- Owner: Yash-Singh1
- License: mit
- Created: 2020-10-19T23:22:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T07:15:36.000Z (over 1 year ago)
- Last Synced: 2025-04-03T18:03:40.123Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 82 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsonlines
[`JSONL`](https://jsonlines.org/) (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:
## Installation
Install from `npm`:
```sh
npm install @saiansh2525/jsonlines
```### HTML
```html
```
### NodeJS
```javascript
const JSONL = require('@saiansh2525/jsonlines');
```## Docs
You can call `JSONL` functions and view strings through the `JSONL` object.
### JSONL.parse
To parse a string to a list, use `JSONL.parse`.
The only parameter is the string that has to be parsed.
It will return a list.
Error may occur on the scenario of invalid `JSONL` strings being passed in to parse.### JSONL.stringify
To stringify a list into `JSONL`, use `JSONL.stringify`. The parameter is the list.
It will return a string of the list stringified.### JSONL.name
The name of the library => `"jsonlines"`.
## Contributing
Contributions are welcome!