1.0.7 • Published 3 years ago

@jhikyu/env v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

To install @jhikyu/env, run the following command:

npm install @jhikyu/env

To use the package, require it in your project like so:

require('@jhikyu/env')(); // Path default to ./.env
require('@jhikyu/env')('./.myEnv'); // File path is optional

Usage

Creating file

text=My Variable Text
anyNumber=1

Getting variables

All Variables are stored in the global.env object. Use it like so:

console.log(global.env.text)
// Output: My Variable Text

console.log(env.anyNumber)
// Output: 1

License

This package is licensed under the MIT License.

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago