1.0.0 • Published 6 years ago

oseti v1.0.0

Weekly downloads
12
License
ISC
Repository
github
Last release
6 years ago

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

1.0.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago