Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
d120dd129c | |||
512fc4a67e |
28
README.md
28
README.md
@ -1,2 +1,28 @@
|
||||
# smartenv
|
||||
wrapper for all non-gulp npm plugins
|
||||
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"
|
||||
```
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "smartenv",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "store things about your environment and let them travel across modules",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -1,28 +1,2 @@
|
||||
# How to compile.
|
||||
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"
|
||||
```
|
||||
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.
|
Reference in New Issue
Block a user