A module for storing and accessing environment details across different platforms.
Go to file
2016-04-05 01:07:24 +02:00
dist updated deps 2016-04-04 18:24:22 +02:00
test update object assignment 2016-02-20 10:50:32 +01:00
ts add isC9 to env 2016-03-03 01:50:13 +01:00
.gitignore updated deps 2016-04-04 18:24:22 +02:00
.npmignore update travis 2016-02-20 10:21:09 +01:00
.travis.yml update travis 2016-02-20 10:21:09 +01:00
LICENSE Initial commit 2015-11-24 20:29:09 +01:00
npmts.json added coveralls 2016-02-17 21:50:16 +01:00
package.json 1.2.2 2016-04-05 01:07:24 +02: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"