smartenv/ts/compile
2015-11-26 06:51:13 +01:00
..
compile.js initial 2015-11-26 06:31:31 +01:00
readme.md updated readme 2015-11-26 06:51:13 +01:00

How to compile.

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"