Go to file
Philipp Kunz d3a796accf initial
2015-12-01 06:03:33 +01:00
ts initial 2015-12-01 06:03:33 +01:00
.gitignore initial 2015-12-01 06:03:33 +01:00
.travis.yml initial 2015-12-01 06:03:33 +01:00
index.js initial 2015-12-01 06:03:33 +01:00
LICENSE Initial commit 2015-11-30 12:40:36 +01:00
package.json initial 2015-12-01 06:03:33 +01:00
README.md initial 2015-12-01 06:03:33 +01:00
test.js initial 2015-12-01 06:03:33 +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"