load-yml
v1.4.0
Published
Read and parse a .yaml or .yml file
Downloads
1,069
Maintainers
Readme
load-yml
Read and parse a .yaml or .yml file
Documentation • Change Log
Installing
# use pnpm
$ pnpm install load-yml
# use npm
$ npm install load-yml --save
# use yarn
$ yarn add load-yml
Usage
- use
load-yml
in async mode
import { loadYml } from 'load-yml'
loadYml().then(path => {
console.log('result is: ', path) // { "name": "saqqdy" }
})
- use
load-yml
in sync mode
import { loadYmlSync } from 'load-yml'
console.log('result is: ', loadYmlSync()) // { "name": "saqqdy" }
Support & Issues
Please open an issue here.