Skip to content

global-env/global-env-runtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

global-env-runtime

🌐 A runtime implementation for the global-env proposal.

Installing

Install the package with npm:

npm install global-env-runtime --save

Or if you use Yarn:

yarn add global-env-runtime --save

TODO: Provide a CDN alternative?

Usage

If you're using the package, you can import the runtime into your code, and it will

// If you use es6 modules:
import 'global-env-runtime';
// If you use commonjs:
require('global-env-runtime');

You can then use global.env as you would normally expect:

if (env.is('test')) {
  // Handle special case...
}

About

🌐 A runtime for the global-env proposal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published