@m59/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.

Stats

StarsIssuesVersionUpdatedCreatedSize
@m59/yaml-to-json
1.0.44 years ago4 years agoMinified + gzip package size for @m59/yaml-to-json in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.