{"_id":"fantasy-promises","_rev":"3645075","name":"fantasy-promises","description":"Fantasy Land compatible monadic promises","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"puffnfresh","email":""},{"name":"trevorbasinger","email":""}],"time":{"modified":"2024-11-19T02:51:33.000Z","created":"2013-04-19T03:03:56.299Z","0.1.0":"2013-07-09T19:13:22.870Z","0.0.1":"2013-04-19T03:03:56.299Z"},"users":{},"author":{"name":"Brian McKenna"},"repository":{"type":"git","url":"git://github.com/pufuwozu/fantasy-promises.git"},"versions":{"0.1.0":{"name":"fantasy-promises","version":"0.1.0","description":"Fantasy Land compatible monadic promises","main":"index.js","scripts":{"readme":"$(npm bin)/emu < index.js > README.md","test":"$(npm bin)/nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/pufuwozu/fantasy-promises.git"},"keywords":["promise","promises","fantasyland","monad","async","asynchronous","deferred"],"author":{"name":"Brian McKenna"},"license":"MIT","devDependencies":{"emu":"0.0.2","nodeunit":"~0.8.0"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/pufuwozu/fantasy-promises/issues"},"_id":"fantasy-promises@0.1.0","dist":{"shasum":"2b44c4fa0589b559212ced2b399de383a7104020","size":1553,"noattachment":false,"key":"/fantasy-promises/-/fantasy-promises-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/fantasy-promises/download/fantasy-promises-0.1.0.tgz"},"_from":".","_npmVersion":"1.2.32","_npmUser":{"name":"puffnfresh","email":"brian@brianmckenna.org"},"maintainers":[{"name":"puffnfresh","email":""},{"name":"trevorbasinger","email":""}],"directories":{},"publish_time":1373397202870,"_hasShrinkwrap":false,"_cnpm_publish_time":1373397202870,"_cnpmcore_publish_time":"2021-12-18T18:58:22.571Z"},"0.0.1":{"name":"fantasy-promises","version":"0.0.1","description":"Fantasy Land compatible monadic promises","main":"index.js","scripts":{"test":"node_modules/.bin/nodeunit test.js"},"repository":{"type":"git","url":"git://github.com/pufuwozu/fantasy-promises.git"},"keywords":["promise","promises","fantasyland","monad","async","asynchronous","deferred"],"author":{"name":"Brian McKenna"},"license":"MIT","devDependencies":{"emu":"0.0.2","nodeunit":"~0.8.0"},"readmeFilename":"README.md","_id":"fantasy-promises@0.0.1","dist":{"shasum":"5efafa8fbbd70cc07fb0b00f57bba6c918cdba63","size":2011,"noattachment":false,"key":"/fantasy-promises/-/fantasy-promises-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/fantasy-promises/download/fantasy-promises-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"puffnfresh","email":"brian@brianmckenna.org"},"maintainers":[{"name":"puffnfresh","email":""},{"name":"trevorbasinger","email":""}],"directories":{},"publish_time":1366340636299,"_hasShrinkwrap":false,"_cnpm_publish_time":1366340636299,"_cnpmcore_publish_time":"2021-12-18T18:58:22.817Z"}},"readme":"# Fantasy Promises\n\nThis library implements purely functional, monadic promises.\n\n## `Promise(fork)`\n\nPromise is a constructor which takes a `fork` function. The `fork`\nfunction takes one argument:\n\n### `fork(resolve)`\n\nThe `resolve` callback gets called on a value.\n\n### `Promise.of(x)`\n\nCreates a Promise that contains a successful value.\n\n### `chain(f)`\n\nReturns a new promise that evaluates `f` when the current promise\nis successfully fulfilled. `f` must return a new promise.\n\n### `map(f)`\n\nReturns a new promise that evaluates `f` on a value and passes it\nthrough to the resolve function.\n\n### `extract()`\n\nExecutes a promise to get a value.\n\n### `extend(f)`\n\nReturns a new promise that evaluates `f` over the promise to get a\nvalue.\n\n## Fantasy Land Compatible\n\n[\n  ![](https://raw.github.com/pufuwozu/fantasy-land/master/logo.png)\n](https://github.com/pufuwozu/fantasy-land)\n","_attachments":{},"readmeFilename":"README.md","bugs":{"url":"https://github.com/pufuwozu/fantasy-promises/issues"},"license":"MIT"}