A module for storing and accessing environment details across different platforms.
Go to file
2016-11-21 18:28:06 +01:00
dist reverse to ES5 2016-11-21 18:28:06 +01:00
test update tests 2016-11-21 12:04:57 +01:00
ts reverse to ES5 2016-11-21 18:28:06 +01:00
.gitignore updated deps 2016-04-04 18:24:22 +02:00
.gitlab-ci.yml update to latest standards 2016-11-21 11:58:37 +01:00
.npmignore update travis 2016-02-20 10:21:09 +01:00
LICENSE Initial commit 2015-11-24 20:29:09 +01:00
npmts.json reverse to ES5 2016-11-21 18:28:06 +01:00
package.json 1.2.10 2016-11-21 14:51:39 +01:00
README.md update README 2016-11-21 12:11:49 +01:00
tslint.json update to latest standards 2016-11-21 11:58:37 +01:00

smartenv

store things about your environment and let them travel across modules

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Install

Install the package through npm

npm install smartenv

Usage

var smartenv = require("smartenv");

smartenv.info(); //prints an output about your current environment and registered objects
smartenv.register({akey:"a text"},"somevalue"); // register a new object
smartenv.makeGlobal() // make smartenv available from gobal.smartenv
smartenv.get("somevalue").akey; // returns "a text"
smartenv.items.somevalue.akey; // also returns "a text"

npm