
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
yaml-convert
Advanced tools
Command-line utility for converting between YAML and JSON, using
yaml
. By default parses either YAML or JSON from
standard input and outputs JSON on standard output.
npm install yaml-convert
yaml-convert [input]
Convert between YAML and JSON, optionally wrapping output as a JS module
Output format:
--es6, -e Convert to an ECMAScript module [boolean]
--json, -j Convert to JSON [boolean] [default: true]
--node, -n Convert to a Node.js module [boolean]
--yaml, -y Convert to YAML [boolean]
Options:
--version Show version number [boolean]
--input, -i Input file; use - for stdin [string] [default: "-"]
--keep, -k When outputting YAML, keep original styling [boolean]
--output, -o Output file; use - for stdout [string] [default: "-"]
--pretty, -p When outputting JS or JSON, make it pretty [boolean]
--quiet, -q Silence warnings and errors; always try to produce output
[boolean]
--help Show help [boolean]
yaml-convert --input file.yaml --output file.json
yaml-convert -np < file.yaml > file.js
yaml-convert file.yaml | jq .foo
FAQs
Command-line utility for reading & writing YAML files
The npm package yaml-convert receives a total of 4,700 weekly downloads. As such, yaml-convert popularity was classified as popular.
We found that yaml-convert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.