Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "smartenv", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "store things about your environment and let them travel across modules", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,2 @@ | ||
# pushrocks | ||
# smartenv | ||
wrapper for all non-gulp npm plugins |
@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" /> | ||
smartenv.info(); | ||
beautylog.info("Now testing the smartenv module"); | ||
smartenv.register({ key1: "Peter" }, "docit"); | ||
@@ -8,0 +9,0 @@ smartenv.info(); |
# How to compile. | ||
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory. | ||
store things about your environment and let them travel across modules | ||
## Status | ||
[](https://travis-ci.org/pushrocks/smartenv) | ||
[](https://david-dm.org/pushrocks/smartenv) | ||
[](https://david-dm.org/pushrocks/smartenv#info=devDependencies) | ||
[](https://www.bithound.io/github/pushrocks/smartenv/master/dependencies/npm) | ||
[](https://www.bithound.io/github/pushrocks/smartenv) | ||
## Install | ||
Install the package through npm | ||
``` | ||
npm install smartenv | ||
``` | ||
## Usage | ||
```javascript | ||
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" | ||
``` |
@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" /> | ||
smartenv.info(); | ||
beautylog.info("Now testing the smartenv module"); | ||
smartenv.register({ key1: "Peter" }, "docit"); | ||
@@ -8,0 +9,0 @@ smartenv.info(); |
@@ -6,2 +6,3 @@ /// <reference path="typings/tsd.d.ts" /> | ||
smartenv.info(); | ||
beautylog.info("Now testing the smartenv module"); | ||
smartenv.register({key1:"Peter"},"docit"); | ||
@@ -8,0 +9,0 @@ smartenv.info(); |
Sorry, the diff of this file is not supported yet
99852
2105