@tknf/fsyaml
v0.1.0
Published
Load and parse yaml file with environment variables
Downloads
1
Readme
@tknf/fsyaml
Load and parse yaml file with environment variables
To get started, open a new shell and run:
npm install --save @tknf/fsyaml
# or
yarn add @tknf/fsyaml
Getting started
usage:
development:
port: "3000"
host: "127.0.0.1"
const fsyaml = require("@tknf/fsyaml");
const config = fsyaml.load("config.yaml");
console.log(config);
/**
* {
* "development": {
* "port": 3000,
* "host": 127.0.0.1
* }
* }
*/