sessionify

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

MIT 2 个版本
安装
npm install sessionify
yarn add sessionify
pnpm add sessionify
bun add sessionify
README

sessionify NPM version

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

Install with npm

npm i sessionify --save

Running tests

Install dev dependencies.

npm i -d && npm test

Usage

var sessionify = require('sessionify');

API

sessionify

  • 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

Author

Brian Woodward

License

Copyright © 2015 Brian Woodward Released under the MIT license


This file was generated by verb-cli on June 15, 2015.

版本列表
0.1.1 2015-06-15
0.1.0 2014-12-17