0.1.0 • Published 6 years ago

confyaml v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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
0.1.0

6 years ago