LoginSignup
3
3

More than 5 years have passed since last update.

package.json は .yaml で準備して json に直すワンライナーでエクスポートする

Posted at

毎回スクリプト書くのも面倒だし、ワンライナーにしてエイリアス登録しておくといい

$ perl -MJSON -MYAML -wl -e 'print JSON->new->utf8(1)->pretty(1)->encode(YAML::LoadFile(shift))' package.yaml > package.json

細かいところはこのあたりを参照
* JSON - search.cpan.org
* YAML - search.cpan.org

3
3
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3