1.1.0 • Published 8 months ago
@nodejs-loaders/yaml v1.1.0
Nodejs Loaders: YAML
Environment: test, development
Compatible APIs: module.register
This loader enables importing YAML files, converting them to a plain javascript object. YAML id commonly used for configuration files, which are often more easily represented in YAML than JSON.
# config.yaml
foo: bar
baz:
- qux
- zed
import config from './config.yaml';
config.foo; // 'bar'
config.baz; // ['qux', 'zed']
.yaml
.yml
Alternatives