A module for storing and accessing environment details across different platforms.
Go to file
2015-12-25 00:22:43 +01:00
.idea initial 2015-11-26 06:31:31 +01:00
test/browser node vs browser env check is now working 2015-12-25 00:22:28 +01:00
ts node vs browser env check is now working 2015-12-25 00:22:28 +01:00
.gitignore cleaned up 2015-11-30 20:01:02 +01:00
.travis.yml initial 2015-11-26 06:31:31 +01:00
index.js node vs browser env check is now working 2015-12-25 00:22:28 +01:00
LICENSE Initial commit 2015-11-24 20:29:09 +01:00
package.json 0.0.14 2015-12-25 00:22:43 +01:00
README.md updated readme 2015-11-26 06:54:28 +01:00
test.js added merge and replace operations for objectstorage 2015-12-10 15:52:14 +01:00
testbrowser.js node vs browser env check is now working 2015-12-25 00:22: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"