duo-yaml
v0.0.1
Published
Seamlessly require .yaml or .yml within duo
Downloads
2
Maintainers
Readme
duo-yaml
Seamlessly require .yaml or .yml within duo
Installation
npm install --save-dev duo-yaml
Example
# foobar.yaml
foo: 'bar'
foofn: !<tag:yaml.org,2002:js/function> "function bar(){ return 1 }"
console.log(require('./foobar.yaml'))
// after build will be: -> { foo: 'bar', foofn: [Function: bar] }
$ duo --use duo-yaml ...