An open API service indexing awesome lists of open source software.

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

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" }
```