https://github.com/erfanium/multiline-to-json
A simple tool to convert multi-line and multi-key text file to json file
https://github.com/erfanium/multiline-to-json
Last synced: 11 months ago
JSON representation
A simple tool to convert multi-line and multi-key text file to json file
- Host: GitHub
- URL: https://github.com/erfanium/multiline-to-json
- Owner: erfanium
- Created: 2021-04-17T13:21:20.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-17T13:36:12.000Z (about 5 years ago)
- Last Synced: 2025-06-29T00:49:13.262Z (12 months ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Usage
```sh
node parse.js sample.txt
```
## Sample input
```txt
#foo
line1
line2
#bar
la1
lb2
lb3
```
## Sample output
```json
{ "foo" : "line1\nline2", "bar" : "la1\nlb2\n\nlb3" }
```