yaml-utils

1.1.0 • Public • Published

yaml-utils

latest version published to npm

CLI tools for converting JSON to YAML and vice versa.

This package provides two bin scripts:

json2yaml

YAML is a superset of JSON, so there are lots of ways to convert JSON to YAML. But one is better than none.

json2yaml < package.json
> name: scripts
> version: 0.2.0
> description: Handy scripts
> keywords:
>   - scripts
> ...

yaml2json

Read in YAML and output JSON.

cat simple_spec.yaml | yaml2json | jq . > simple_spec.json

License

Copyright © 2014–2018 Christopher Brown. MIT Licensed.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i yaml-utils

    Weekly Downloads

    0

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    3.55 kB

    Total Files

    4

    Last publish

    Collaborators

    • chbrown