1.4.0 • Published 9 months ago

load-yml v1.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

load-yml

Read and parse a .yaml or .yml file

NPM version Codacy Badge tree shaking typescript Test coverage npm download License

Sonar

DocumentationChange Log

Installing

# use pnpm
$ pnpm install load-yml

# use npm
$ npm install load-yml --save

# use yarn
$ yarn add load-yml

Usage

  1. use load-yml in async mode
import { loadYml } from 'load-yml'

loadYml().then(path => {
  console.log('result is: ', path) // { "name": "saqqdy" }
})
  1. 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.

License

MIT