A module for storing and accessing environment details across different platforms.
Go to file
2016-11-21 12:04:57 +01:00
dist update to latest standards 2016-11-21 11:58:37 +01:00
test update tests 2016-11-21 12:04:57 +01:00
ts update to latest standards 2016-11-21 11:58:37 +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 prepare for npmts-g 2016-04-05 15:13:52 +02:00
package.json 1.2.6 2016-11-21 11:58:41 +01:00
README.md Update README.md 2016-05-19 06:55:05 +02: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

Status

Build Status Dependency Status devDependency Status bitHound Dependencies bitHound Overalll Score

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"

About the authors:

Project Phase

PayPal