@m59/yaml-to-json

1.0.4 • Public • Published

yaml-to-json

pipe yaml to stdin, get json from stdout, or pass a src directory of yaml files (recursive) and a dest directory for json files.

install

$ npm install -g @m59/yaml-to-json

example

cat my-file.yaml | yaml-to-json > my.file.json

yaml-to-json $src $dest

.yml and .yaml in the $src directory and subdirectories (recursive) will be used to write json files. The json files are output with the same directory structure, but starting from $dest.

# process yaml files under current directory
# output json in the same directory as the corresponding yaml
yaml-to-json . .
yaml-to-json src /some/other/place

Package Sidebar

Install

npm i @m59/yaml-to-json

Weekly Downloads

0

Version

1.0.4

License

CC0-1.0

Unpacked Size

8.76 kB

Total Files

4

Last publish

Collaborators

  • m59