1.0.7 • Published 1 year ago

@jhikyu/env v1.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year 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

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago