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.
- Host: GitHub
- URL: https://github.com/doowb/sessionify
- Owner: doowb
- License: mit
- Created: 2014-12-17T03:54:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T03:04:47.000Z (almost 11 years ago)
- Last Synced: 2025-08-24T20:10:12.874Z (12 months ago)
- Language: JavaScript
- Size: 115 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# sessionify [](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._