{"_id":"token-facilitator","_rev":"337-a8820fab11fe1acfd6c0e723bbbf49d5","name":"token-facilitator","dist-tags":{"latest":"3.0.0"},"versions":{"1.0.0":{"name":"token-facilitator","version":"1.0.0","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@1.0.0","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"80997edc20d27deea99f258c217f96daf60d6489","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-1.0.0.tgz","integrity":"sha512-YAcwVFLvQ0kl9p2CSoIMqIGK0StjKzteJFB7lWQnCtL0xdd7glUqTi8XwHy6tmilJD5wbQg207b2VjwOjIWNnQ==","signatures":[{"sig":"MEQCIHteSeyN2tAiLKMJyPClrZDmf5TCc0ONj8NrG8IyGjgmAiBlV+9j5GsL58rcQQ1/iBltGJsbFsNN+5q1XGPmN2IdKw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"80997edc20d27deea99f258c217f96daf60d6489","gitHead":"49c3e599ea1bdc3a7b7f71281980ee884e32b211","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"https://github.com/npm/token-generator","type":"git"},"_npmVersion":"2.5.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"0.10.35","dependencies":{"lodash":"^3.2.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"1.0.1":{"name":"token-facilitator","version":"1.0.1","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@1.0.1","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"67afa738e100f4ec7df7f4e3ba763208812fb363","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-1.0.1.tgz","integrity":"sha512-7GK74xs/B7zbHEUlEgwCPVbO9JpirMnZBMoglTrFXgpdUyLc0yT45TeNt2IsfY93phxIyFQWy6f1YCb47ij+IQ==","signatures":[{"sig":"MEYCIQCHVEAc+MV7DhfsukoKZhMgq0adqvDxQL+rOM5h3XD1FgIhAJEs9vfgAmzozLd0nplTb0lEuxHHc0oPyEMDCjG2gmhn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"67afa738e100f4ec7df7f4e3ba763208812fb363","gitHead":"6cd8b0232d4d48153e28dc7f409ae2641fcf3719","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"https://github.com/npm/token-generator","type":"git"},"_npmVersion":"2.5.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"0.10.35","dependencies":{"lodash":"^3.2.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"2.0.0":{"name":"token-facilitator","version":"2.0.0","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@2.0.0","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"b3d73b4e54f268b5c71d265849c9518392388924","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-2.0.0.tgz","integrity":"sha512-i+i9DE9kQ8nwG/BsGfI8R1VXCS3ix5bcOC2uyU3EQwIdgtKfbSD6U533HZKQbdTz6ImjnFyGUObDFZn6C+O3jA==","signatures":[{"sig":"MEQCIEbKFF+ziTGTYBR0Kg2GU+SMl359uvjbJ2fCBt4fxhkuAiAJYRRBATxTb+vMAxcGacGLoVsAxa1Brq3nELb5q0yQjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b3d73b4e54f268b5c71d265849c9518392388924","gitHead":"53566b180b6008be8999a683a30d927a5a93a533","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"https://github.com/npm/token-generator","type":"git"},"_npmVersion":"2.5.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"0.10.35","dependencies":{"lodash":"^3.2.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"2.1.0":{"name":"token-facilitator","version":"2.1.0","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@2.1.0","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"86aab1768f8d188265746f4de5051d6f77247208","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-2.1.0.tgz","integrity":"sha512-RHNM4bsVXfqpU+Gf0TrZlnApkgRX9xCF0pfdAvNov4XTkpkxayiWgb0mOnVO1AaIHcX4Y9QaY7YefI44Pneq/A==","signatures":[{"sig":"MEQCIGh6CrsiBkJ3fTzGUSKJbYv9kUVa+DJPmSvGULtv7yLMAiBSopIV4JSq9EqPWb8EgRYgugY53IX8nSXCLGCnhhgcwA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"86aab1768f8d188265746f4de5051d6f77247208","gitHead":"af8dacd1281b45bd5f354a62fe6a98b39ee7f618","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"https://github.com/npm/token-generator","type":"git"},"_npmVersion":"2.5.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"0.10.35","dependencies":{"lodash":"^3.2.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"2.1.1":{"name":"token-facilitator","version":"2.1.1","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@2.1.1","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"b28c4d8532726e0443fae59f3d902b3885ff6f96","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-2.1.1.tgz","integrity":"sha512-HtSlP2aEtDPVvzH9ZJJeEK3wIzmHqmR6ZbVIhVepEVwRyMoOBsHikMMZNUt0H0mpeTYQsfvVG8sXvH3ugOTubg==","signatures":[{"sig":"MEQCIGXZ30j7nFrox/+XxeVhR1LPLhsrsIhE6wRfqc7eseDCAiBwNQsnHUEjnaJQuM2XA5XMScpDDF+0xjVHHMiJersC/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"b28c4d8532726e0443fae59f3d902b3885ff6f96","gitHead":"0f6f3eec0a7bdf43f7b95a9c3520bb26bcc3393a","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"https://github.com/npm/token-generator","type":"git"},"_npmVersion":"2.5.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"0.10.35","dependencies":{"lodash":"^3.2.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"2.2.0":{"name":"token-facilitator","version":"2.2.0","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@2.2.0","maintainers":[{"name":"rockbot","email":"raquel@rckbt.me"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"ac1b9a487fdf5d9d3701096a260b315656610dfb","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-2.2.0.tgz","integrity":"sha512-mIlaHogSQB1qFnxmaLROW8ZdLtMLYMIGfmWxBwfV2MlqoX42Vei1YTELMFLMdhQwB4jmwmPaVHsBO/U0OVGdtw==","signatures":[{"sig":"MEQCIFqcopX7AYTAWF7+OT38WOjyqTINC6oYCfWVaZZ0jKlcAiBCce+nQR34Dm7F4OHPzzqNBI/dPLOzFtABO5k08B/83Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"ac1b9a487fdf5d9d3701096a260b315656610dfb","gitHead":"163310af99ca242210909450a604d0b86e33c950","scripts":{"test":"lab -vC"},"_npmUser":{"name":"rockbot","email":"raquel@rckbt.me"},"repository":{"url":"git+https://github.com/npm/token-generator.git","type":"git"},"_npmVersion":"3.1.3","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"2.3.4","dependencies":{"lodash":"^3.2.0","verror":"^1.6.0"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis":"^0.12.1"}},"3.0.0":{"name":"token-facilitator","version":"3.0.0","keywords":["token","redis"],"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","_id":"token-facilitator@3.0.0","maintainers":[{"name":"aredridel","email":"aria@npmjs.com"},{"name":"bcoe","email":"ben@npmjs.com"},{"name":"ceejbot","email":"ceejceej@gmail.com"},{"name":"chrisdickinson","email":"chris@neversaw.us"},{"name":"codingdino","email":"kasey.byrne@yahoo.com"},{"name":"ehsalazar","email":"ernie@npmjs.com"},{"name":"iarna","email":"me@re-becca.org"},{"name":"isaacs","email":"i@izs.me"},{"name":"jlembeck","email":"jlembeck@gmail.com"},{"name":"jonathanmarvens","email":"jonathan@belairlabs.com"},{"name":"mmalecki","email":"me@mmalecki.com"},{"name":"ncawthon","email":"ncawthon@gmail.com"},{"name":"othiym23","email":"ogd@aoaioxxysz.net"},{"name":"rockbot","email":"raquel@rckbt.me"},{"name":"snopeks","email":"stephanie@npmjs.com"},{"name":"soldair","email":"soldair@gmail.com"},{"name":"zkat","email":"kat@sykosomatic.org"}],"homepage":"https://github.com/npm/token-generator","bugs":{"url":"https://github.com/npm/token-generator/issues"},"dist":{"shasum":"8e6f8e19ebda95695d1ee2a2798235a379a15995","tarball":"https://registry.npmjs.org/token-facilitator/-/token-facilitator-3.0.0.tgz","integrity":"sha512-QiF/Qh5l7R/UXyqpKaor6q0IXXXa/xz5TYlvonDOSbFSpwZFZ57PjtL5O3sIx5ejtNwp3BbUmA8xNILPCf2XBw==","signatures":[{"sig":"MEQCIG8qONB0h/RvgbRYKAa4uTWOxqLlubIMe5KluJ7yedoBAiAZwVco82RL26pWgqXLtUcjJ29a6CHNgyBo+hCJHoG6MA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"8e6f8e19ebda95695d1ee2a2798235a379a15995","gitHead":"09b9b2f61e5be247dab6bc050e73139d14191f8e","scripts":{"test":"lab -vC"},"_npmUser":{"name":"jonathanmarvens","email":"jonathan@belairlabs.com"},"repository":{"url":"git+https://github.com/npm/token-generator.git","type":"git"},"_npmVersion":"3.6.0","description":"generates tokens and stores them with relevant data in redis","directories":{},"_nodeVersion":"4.2.4","dependencies":{"verror":"^1.6.0","bluebird":"^3.3.1"},"devDependencies":{"lab":"^5.2.1","code":"^1.3.0","redis-mock":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/token-facilitator-3.0.0.tgz_1455837152741_0.337371515808627","host":"packages-6-west.internal.npmjs.com"}}},"time":{"created":"2015-02-18T01:21:48.441Z","modified":"2026-09-24T14:39:57.108Z","1.0.0":"2015-02-18T01:21:48.441Z","1.0.1":"2015-02-18T01:28:56.874Z","2.0.0":"2015-02-18T20:46:00.918Z","2.1.0":"2015-02-25T00:35:56.846Z","2.1.1":"2015-02-25T22:41:18.555Z","2.2.0":"2015-08-27T21:07:16.893Z","3.0.0":"2016-02-18T23:12:37.107Z"},"bugs":{"url":"https://github.com/npm/token-generator/issues"},"author":{"name":"Raquel Vélez","email":"raquel@rcbkt.me"},"license":"ISC","homepage":"https://github.com/npm/token-generator","keywords":["token","redis"],"repository":{"url":"git+https://github.com/npm/token-generator.git","type":"git"},"description":"generates tokens and stores them with relevant data in redis","maintainers":[{"email":"npm@npmjs.com","name":"npm"},{"email":"ops@npmjs.com","name":"npmci"},{"email":"saquibkhan@github.com","name":"saquibkhan"},{"email":"tayvon@github.com","name":"tayvongh"},{"email":"karenjli@github.com","name":"karenjli"},{"email":"nishantms@github.com","name":"nishantms"},{"email":"shmam@github.com","name":"shmam"},{"email":"reggi@github.com","name":"reggi"},{"email":"dhei@github.com","name":"dhei"},{"email":"maitxn@github.com","name":"maitxn"},{"email":"jver@microsoft.com","name":"joelverhagen-gh"},{"email":"martin.ruiz.mares@gmail.com","name":"martinrrm"},{"email":"kartyksantiago@gmail.com","name":"kartyk-github"},{"email":"bhaveshbhati@github.com","name":"bhaveshbhati"},{"email":"deekshitha2812@github.com","name":"deekshitha2812"},{"email":"vinayakmsft@github.com","name":"vinayakmsft"},{"email":"bpoluri@microsoft.com","name":"poluri"},{"email":"snehapar9@github.com","name":"snehapar9"},{"email":"mcumming@microsoft.com","name":"mcumming"},{"email":"nikolce1kolev@gmail.com","name":"nkolev92"}],"readme":"# Token Facilitator\n\nLet's generate tokens and store them in redis!\n\nIt's pretty simple - we generate a random key associated with some data. That data gets stored as a string in redis.\n\n```js\nvar data = {\n  a: 'one',\n  b: 'two'\n};\n\nvar facilitator = new Facilitator({redis: client});\nfacilitator.generate(data)\n  .then(function (token) {\n    expect(token).to.exist();\n\n    var key = sha(token);\n    client.get(key, function (err, data) {\n      expect(data).to.be.a.string();\n      data = JSON.parse(data);\n      expect(data.a).to.equal('one');\n      expect(data.b).to.equal('two');\n      done();\n    });\n  });\n```\n\nYou can also set some options! Right now, our options include `timeout` and `prefix`:\n\n```js\nvar opts = {\n  timeout: 10, //seconds\n  prefix: 'something:' // don't forget that separator!\n};\n\nfacilitator.generate(data, opts)\n  .catch(function (err) { /* ... */ })\n  .then(function (key) {\n    // now the key has a prefix of `something:` and will live for 10 seconds :-)\n  });\n\n```\n\n# License\n\nISC\n\n","readmeFilename":"README.md","users":{"j.su":true}}