A module for storing and accessing environment details across different platforms.
Go to file
2016-02-17 21:45:23 +01:00
coverage update to commonjs module structure 2016-02-17 21:44:40 +01:00
dist update to commonjs module structure 2016-02-17 21:44:40 +01:00
test update to commonjs module structure 2016-02-17 21:44:40 +01:00
ts cleanup 2016-02-17 21:45:16 +01:00
.gitignore cleanup 2016-02-17 21:45:16 +01:00
.travis.yml initial 2015-11-26 06:31:31 +01:00
LICENSE Initial commit 2015-11-24 20:29:09 +01:00
package.json 0.1.0 2016-02-17 21:45:23 +01:00
README.md updated readme 2015-11-26 06:54:28 +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"