confyaml
v0.1.0
Published
Simply config.yaml parser library.
Downloads
1
Readme
simply config.yaml parser library
Installation
install with yarn or npm:
~ npm i --save[-dev] confyaml
# or
~ yarn add [--dev] confyaml
Usage
config.yaml
app_name: here is app name
app.js
// in app.js
require("confyaml").config(); // *default read root directory config.yaml*
// or
require("confyaml").config({path: "./config.yaml"})
// or
require("confyaml").config({
path: [
"./config.yaml",
"./database.yaml"
]
})
// in other files.
console.log(process.env.get("app"))
// -> here is app name