{"_id":"defer","_rev":"8-47a9ebbd70631ecf9d8cec4d5b0503b2","name":"defer","description":"Defer execution of a task.","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"defer","description":"a simple model for callbacks","author":{"name":"Alex Bosworth","email":"alex.bosworth@gmail.com"},"version":"0.0.1","repository":{"type":"git","url":"git://github.com/alexbosworth/deferred.git"},"main":"index.js","engine":"node >= 0.4.1","_npmJsonOpts":{"file":"/Users/alex/.npm/defer/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"defer@0.0.1","dependencies":{},"devDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.22","_nodeVersion":"v0.4.9","_defaultsLoaded":true,"dist":{"shasum":"2e56cf2cba77e81f4f3903657cb503e52e675dde","tarball":"https://registry.npmjs.org/defer/-/defer-0.0.1.tgz","integrity":"sha512-NkBo3HfFXtpRRu/uAoEoZHl3XDLoEA9oXgqyeQkuJxS/tt7ldY2hBJmp7s667qOBIHwL3Gbpd88oU1uYhU/+mA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMlHa7lgqfIN926V2mQOYiTFcaJJUGn0un2loSxj6j6gIgNVlgAeVCGYC3WLy7o1xa3yaU1OekyXTCFPIdg3wy6UQ="}]},"scripts":{},"maintainers":[{"name":"alexbosworth","email":"alex.bosworth+npm@gmail.com"}]},"1.0.0":{"name":"defer","version":"1.0.0","license":"MIT","repository":{"type":"git","url":"git+https://github.com/LinusU/defer.git"},"scripts":{"test":"standard && node test"},"devDependencies":{"standard":"^10.0.3"},"gitHead":"a461ecada28c51e5669b04028d50a9e0093efd30","description":"Defer execution of a task.","bugs":{"url":"https://github.com/LinusU/defer/issues"},"homepage":"https://github.com/LinusU/defer#readme","_id":"defer@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"linusu","email":"linus@folkdatorn.se"},"dist":{"integrity":"sha512-qj1SlrhMWB+r9oML1xQmuMLJn+RfkKJVUIaCr0IDQXb4nL5+tFvsUv9Acr+p1O78heWt6MYvdcXVSUCk9+/Wig==","shasum":"40901eedd0f7f3db2177cc22fdc44d5163d511c3","tarball":"https://registry.npmjs.org/defer/-/defer-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICETK1HfuxLbdlaQuxZD/mTntlBd1EMHSknqTaHcAOlKAiEAmvRWeGKc8nRpt5+6sYKNioc3fruoEGPR7fgVyRPq+wk="}]},"maintainers":[{"email":"linus@folkdatorn.se","name":"linusu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/defer-1.0.0.tgz_1512400994786_0.8765238747000694"}}},"maintainers":[{"email":"linus@folkdatorn.se","name":"linusu"}],"time":{"modified":"2022-06-14T23:21:53.329Z","created":"2011-09-13T07:25:32.582Z","0.0.1":"2011-09-13T07:25:37.601Z","1.0.0":"2017-12-04T15:23:15.801Z"},"repository":{"type":"git","url":"git+https://github.com/LinusU/defer.git"},"readme":"# Defer\n\nDefer execution of a task.\n\n## Installation\n\n```sh\nnpm install --save defer\n```\n\n## Usage\n\n```js\nconst defer = require('defer')\n\nasync function signup (input) {\n  // create user\n\n  defer(async () => {\n    // send welcome email\n  })\n\n  return user\n}\n```\n\n## API\n\n### `defer(fn): Promise`\n\nReturns a `Promise` that will resolve with the return value of `fn`. The function `fn` will be invoked at a later stage in the event loop.\n","readmeFilename":"readme.md","homepage":"https://github.com/LinusU/defer#readme","bugs":{"url":"https://github.com/LinusU/defer/issues"},"license":"MIT"}