@nodejs-loaders/yaml
v1.2.0
Published
Extend node to support YAML via customization hooks.
Readme
Nodejs Loaders: YAML
Usage
$ npm i -D @nodejs-loaders/yaml$ node --import @nodejs-loaders/yaml main.jsSee README.md in the repository's root for more details.
Environment: test, development
Compatible APIs:
This loader enables importing YAML files, converting them to a plain javascript object. YAML is commonly used for configuration files, which are often more easily represented in YAML than JSON.
# config.yaml
foo: bar
baz:
- qux
- zedimport config from './config.yaml';
config.foo; // 'bar'
config.baz; // ['qux', 'zed'].yaml.yml
Alternatives
