An open API service indexing awesome lists of open source software.

https://github.com/doowb/sessionify

Easily bind functions, Event Emitters, and Streams to a session cache.
https://github.com/doowb/sessionify

Last synced: 9 months ago
JSON representation

Easily bind functions, Event Emitters, and Streams to a session cache.

Awesome Lists containing this project

README

          

# sessionify [![NPM version](https://badge.fury.io/js/sessionify.svg)](http://badge.fury.io/js/sessionify)

> Easily bind functions, Event Emitters, and Streams to a session cache.

## Install with [npm](npmjs.org)

```bash
npm i sessionify --save
```

## Running tests
Install dev dependencies.

```bash
npm i -d && npm test
```

## Usage

```js
var sessionify = require('sessionify');
```

## API
### [sessionify](./index.js#L23)

* `fn` **{Function|EventEmitter|Stream}**: Object to bind to.
* `session` **{Object}**: session-cache object to bind with.
* `context` **{Object}**: Optional context to bind to the sesssion.
* `returns` **{*}**: Bound object

Bind a function, EventEmitter, or Stream to the provided session object
with an optional context.

## Contributing
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/sessionify/issues)

## Author

**Brian Woodward**

+ [github/doowb](https://github.com/doowb)
+ [twitter/doowb](http://twitter.com/doowb)

## License
Copyright © 2015 Brian Woodward
Released under the MIT license

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 15, 2015._