@yokejs/core-env
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

CI

Yoke.js Env

Yoke.js Env provides a simple and safe way to access environment variables in Node.js.

Installation

$ yarn add "@yokejs/core-env" or $ npm install "@yokejs/core-env"

Usage

Retrieving an environment variable

import Env from '@yokejs/core-env'

const env = Env()

// Retrieve an environment variable safely
env.get('NODE_ENV')

// Retrieve an environment variable with a default value fallback
env.get('NODE_ENV', 'local')

License

Yoke.js Env is open-sourced software licensed under the MIT License.

Package Sidebar

Install

npm i @yokejs/core-env

Weekly Downloads

2

Version

0.0.5

License

MIT

Unpacked Size

15.2 kB

Total Files

25

Last publish

Collaborators

  • craigcartmell