A pre-hook for npm to support package.yml
YAML support for npm's package.json
. Yes, write your dependencies in YAML.
npm install -g npm-yaml
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: