以下の内容はhttps://takuya-1st.hatenablog.jp/entry/2017/03/29/232905より取得しました。


jq コマンドで json を minify する

jq を使って minify することが出来る

cat composer.json | jq -c . 

または

jq -c . < sample.json

任意のJSONJSONのフィルタを変えて小さくすることが出来る。

サンプル

composer.json を小さくする
{
  "repositories" : [
    {
      "type" :"git",
      "url" : "https://github.com/takuya/simple-app.git"
    }
  ],

  "require":{
    "takuya/simple-app": "dev-master"
  }
}

出来た。

 jq -c .  < composer.json
{"repositories":[{"type":"git","url":"https://github.com/takuya/simple-app.git"}],"require":{"takuya/simple-app":"dev-master"}}



以上の内容はhttps://takuya-1st.hatenablog.jp/entry/2017/03/29/232905より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14