A module for storing and accessing environment details across different platforms.
Go to file
2017-04-21 00:04:28 +02:00
dist now has a env vars feature 2017-04-21 00:04:28 +02:00
test now has a env vars feature 2017-04-21 00:04:28 +02:00
ts now has a env vars feature 2017-04-21 00:04:28 +02:00
.gitignore updated deps 2016-04-04 18:24:22 +02:00
.gitlab-ci.yml update ci 2017-04-19 20:06:21 +02:00
.npmignore update travis 2016-02-20 10:21:09 +01:00
LICENSE now has a env vars feature 2017-04-21 00:04:28 +02:00
npmextra.json update ci 2017-04-19 20:06:21 +02:00
npmts.json prepare new major version 2016-11-21 18:29:02 +01:00
package.json now has a env vars feature 2017-04-21 00:04:28 +02:00
README.md update dependencies to latest standards 2017-04-19 20:02:43 +02:00
tslint.json update to latest standards 2016-11-21 11:58:37 +01:00
yarn.lock now has a env vars feature 2017-04-21 00:04:28 +02:00

smartenv

store things about your environment and let them travel across modules

Availabililty

npm git git docs

Status for master

build status coverage report Dependency Status bitHound Dependencies bitHound Code TypeScript node JavaScript Style Guide

Install

Install the package through npm

npm install smartenv --save

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"

npm