Skip to content
This repository has been archived by the owner on Sep 29, 2020. It is now read-only.
/ oseti Public archive

oseti is configuraton your program with NODE_ENV.

License

Notifications You must be signed in to change notification settings

konojunya/oseti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oseti

oseti is configuraton your program with NODE_ENV.

Install

# with npm
npm install oseti

# or with yarn
yarn add oseti

Usage

We will load the file first.

const oseti = require("oseti");
oseti.load();

Next, specify the configuration key of the config file.

Make config.yml as follows.

staging:
  api_base_url: https://staging.example.com
production:
  api_base_url: https://api.example.com

To get the value using key we write:

oseti.get("api_base_url");

Auther

konojunya