https://github.com/syucream/jsgpack
The simplest CLI tool converts Message Pack <-> JSON(Newline Delimited JSON)
https://github.com/syucream/jsgpack
json messagepack
Last synced: over 1 year ago
JSON representation
The simplest CLI tool converts Message Pack <-> JSON(Newline Delimited JSON)
- Host: GitHub
- URL: https://github.com/syucream/jsgpack
- Owner: syucream
- License: mit
- Created: 2020-05-31T13:00:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-03T15:19:06.000Z (almost 6 years ago)
- Last Synced: 2024-10-29T13:15:22.939Z (over 1 year ago)
- Topics: json, messagepack
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jsgpack
The simplest CLI tool converts Message Pack <-> JSON(Newline Delimited JSON)
## Installation
```
$ go get -u github.com/syucream/jsgpack
```
## Usage
```
$ ./jsgpack
2020/08/04 00:17:08 call with subcommand, tojson or fromjson
$ ./jsgpack -h
Usage of ./jsgpack:
-in string
input file path
-out string
out file
```
```
# JSON -> MsgPack
$ jsgpack -in path/to/input.json -out path/to/output.bin fromjson
$ cat path/to/input.json | jsgpack fromjson > path/to/output.bin
# MsgPack -> JSON
$ jsgpack -in path/to/input.bin -out path/to/output.json tojson
$ cat path/to/input.bin | jsgpack tojson > path/to/output.json
```