https://github.com/therealklanni/json5conv-cli
Command-line JSON5 to JSON converter
https://github.com/therealklanni/json5conv-cli
cli command-line convert json json5
Last synced: about 1 year ago
JSON representation
Command-line JSON5 to JSON converter
- Host: GitHub
- URL: https://github.com/therealklanni/json5conv-cli
- Owner: therealklanni
- License: mit
- Created: 2017-05-25T20:28:45.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-25T20:40:59.000Z (about 9 years ago)
- Last Synced: 2025-04-02T05:02:04.660Z (about 1 year ago)
- Topics: cli, command-line, convert, json, json5
- Language: JavaScript
- Homepage:
- Size: 36.1 KB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-phoenix - json5conv - Command-line JSON5 to JSON converter (Homegrown Open-Source Software)
README
[](https://raw.githubusercontent.com/therealklanni/json5conv-cli/master/LICENSE)
[](https://travis-ci.org/therealklanni/json5conv-cli)
[](https://www.npmjs.com/package/json5conv-cli)
[](https://github.com/prettier/prettier)
[](https://beerpay.io/therealklanni/json5conv-cli)
# json5conv
> Command-line [JSON5](https://github.com/json5/json5) to JSON converter
Convert [JSON5](https://github.com/json5/json5) to JSON from a file or stdin. Supports line-by-line parsing (i.e. convert each line as a separate JSON5 object).
Try it in combination with [`jp`](https://github.com/therealklanni/jp).
## Install
```
yarn global add json5conv-cli
```
Or
```
npm install --global json5conv-cli
```
## Usage
```
Pipe json5conv onto a JSON5 source to parse the output:
cat data.json | json5conv [options]
Options:
-f, --file Read input from file [string]
-L, --line-by-line Parse each line as a separate input [boolean]
--help Show help [boolean]
```
#### License
MIT © [therealklanni](https://github.com/therealklanni)