项目作者: kriswill

项目描述 :
Compact JSON formatter for the command line
高级语言: JavaScript
项目地址: git://github.com/kriswill/json-fmt.git
创建时间: 2019-06-19T18:40:04Z
项目社区:https://github.com/kriswill/json-fmt

开源协议:MIT License

下载


json-fmt

Compact JSON formatter for the command line

Install

  1. yarn global add https://github.com/kriswill/json-fmt

This will create a global command json-fmt

Use

  1. cat package.json | json-fmt

Emits formatted JSON to stdout, pipe to new files as you please..

  1. echo "$(cat my.json | json-fmt)" >| my.json

Replaces my.json file with formatted JSON content