{"name":"session-cache","description":"Session storage for tasks.","version":"0.1.0","homepage":"https://github.com/doowb/session-cache","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git://github.com/doowb/session-cache.git"},"bugs":{"url":"https://github.com/doowb/session-cache/issues"},"licenses":[{"type":"MIT","url":"https://github.com/doowb/session-cache/blob/master/LICENSE-MIT"}],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"^4.3.0","verb":"^0.3.0"},"dependencies":{"continuation-local-storage":"^3.1.1"},"_id":"session-cache@0.1.0","_shasum":"973decbf21246a6dee9c32cedcecf9f2f4ff3e7e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"973decbf21246a6dee9c32cedcecf9f2f4ff3e7e","tarball":"http://registry-npm.ywwl.com/session-cache/download/session-cache-0.1.0.tgz","integrity":"sha512-zlNsDGUoN9r/FVX/ogoc3Gx+dohQbGJWNWD5sGSXdldj1m+PoJI+1g5byNUbi6qTT+rpX3gaJJbfTQ1wVAqSgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeBWZ8OyVa3IqXvb9Lwrcv7coTacuH6ZlgTMmn4VUpTAIge+y2Pwkvy9+S0CUVEr57O9qYchhxuxhfxB1dnMOPSDk="}],"size":3312,"noattachment":false,"key":"/session-cache/-/session-cache-0.1.0.tgz"},"directories":{},"readme":"# session-cache [![NPM version](https://badge.fury.io/js/session-cache.svg)](http://badge.fury.io/js/session-cache)  [![Build Status](https://travis-ci.org/doowb/session-cache.svg)](https://travis-ci.org/doowb/session-cache) \n\n> Session storage for tasks.\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i session-cache --save\n```\n\n## Running tests\nInstall dev dependencies.\n\n```bash\nnpm i -d && npm test\n```\n\n\n## Usage\n\nExample of using sessions to pass data between gulp tasks.\n\n```js\nvar session = require('session-cache')('your app');\n```\n\n## API\n### [.createSession](./index.js#L36)\n\nCreate a session with the given `name`\n\n* `name` **{String}**    \n* `returns`: {Object}  \n\n```js\nvar session = require('session')('your app');\n```\n\n### [.bind](./index.js#L82)\n\nBind a function to the current Session context.\n\n* `fn` **{Function}**: Function to bind.    \n\n```js\nfunction fn (options, next) {\n  next();\n}\nsession.bind(fn);\n```\n\n### [.bindEmitter](./index.js#L96)\n\nBind an EventEmitter or Stream to the current Session context.\n\n* `emitter` **{EventEmitter|Stream}**: EventEmitter or Stream to bind.    \n\n```js\nvar stream = through.obj();\nsession.bindEmitter(stream);\n```\n\n### [.set](./index.js#L107)\n\n* `key` **{String}**    \n* `value` **{*}**    \n* `returns` **{*}**: Returns the set value.  \n\nAssign `value` on the current session to `key`.\n\n### [.get](./index.js#L122)\n\n* `key` **{String}**    \n* `returns` **{*}**: Value of the key or undefined  \n\nGet the stored value of `key` from the current session.\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/session-cache/issues)\n\n## Author\n\n**Brian Woodward**\n \n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb) \n\n## License\nCopyright © 2015 Brian Woodward\nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on August 25, 2015._\n","publish_time":1415698955167,"_cnpm_publish_time":1415698955167,"dist-tags":{"latest":"0.2.0"}}