duo-yaml

Seamlessly require .yaml or .yml within duo

Usage no npm install needed!

<script type="module">
  import duoYaml from 'https://cdn.skypack.dev/duo-yaml';
</script>

README

duo-yaml build status

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 ...