yaml-register
yaml-register
hooks into Node's require
function to load .yaml
and .yml
files.
const { register } = require('yaml-register');
register();
const data = require('/path/to/my-file.yaml');
yaml-register
yaml-register
hooks into Node's require
function to load .yaml
and .yml
files.
const { register } = require('yaml-register');
register();
const data = require('/path/to/my-file.yaml');
npm i yaml-register
16
0.1.0
MIT
1.67 kB
7