1.0.3 • Published 6 years ago

current-env v1.0.3

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

A library to get the current environment

Install

npm install current-env --save

Usage

ES2015:

import * as currentEnv from "current-env";
// ...
currentEnv.getEnv("domain");

CommonJS:

var currentEnv = require("current-env");
// ...
currentEnv.getEnv("domain");

AMD:

require(["currentEnv"], function(currentEnv) {
    // ...
    currentEnv.getEnv("domain");
});

CDN:

<!DOCTYPE html>
<html>
    <script src="https://unpkg.com/current-env/dist/current-env.js"></script>
    <script>
        window.currentEnv.getEnv("domain");
    </script>
</html>

LICENSE

MIT

1.0.3

6 years ago

1.0.2

6 years ago

0.0.3

6 years ago

1.0.1

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago