YAML support for npm's package.json
. Yes, write your dependencies in YAML.
- Install npm-yaml via
npm install -g npm-yaml
- Set
npm-yaml
as your npm pre-hook:npm set onload-script npm-yaml
npm-yaml looks for your package.json
file and initially converts it to YAML. Afterwards, everytime you run npm install
it will convert your package.yml
to JSON before installing.
Here's why:
- No annoying brackets
- JSON (in my opinion) is the most ugly Object Notation language ever.
- I actually did this because I wanted comments in my package.json. Now I have them in my package.yml. Yay!