0.1.0 • Published 3 years ago

@tknf/fsyaml v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@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
 *   }
 * }
 */
0.1.0

3 years ago