Session storage for tasks.
npm install session-cache> Session storage for tasks.
``bash`
npm i session-cache --save
`bash`
npm i -d && npm test
Example of using sessions to pass data between gulp tasks.
`js`
var session = require('session-cache')('your app');
Create a session with the given name
* name {String} returns
* : {Object}
`js`
var session = require('session')('your app');
Bind a function to the current Session context.
* fn {Function}: Function to bind.
`js`
function fn (options, next) {
next();
}
session.bind(fn);
Bind an EventEmitter or Stream to the current Session context.
* emitter {EventEmitter|Stream}: EventEmitter or Stream to bind.
`js`
var stream = through.obj();
session.bindEmitter(stream);
* key {String} value
{} returns
{}: Returns the set value.
Assign value on the current session to key.
* key {String} returns
{}: Value of the key or undefined
Get the stored value of key` from the current session.
Brian Woodward
+ github/doowb
+ twitter/doowb
*
_This file was generated by verb-cli on August 25, 2015._