1.0.4 • Published 6 years ago

@m59/yaml-to-json v1.0.4

Weekly downloads
4
License
CC0-1.0
Repository
-
Last release
6 years ago

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
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago