{"_id":"pend","_rev":"22-5252df2a3c5fff0985ee108715ff1284","name":"pend","description":"dead-simple optimistic async helper","dist-tags":{"latest":"1.2.0"},"versions":{"1.0.0":{"name":"pend","version":"1.0.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"_id":"pend@1.0.0","dist":{"shasum":"69e2cf851c1445bdc9e90f60a58f13684165c581","tarball":"https://registry.npmjs.org/pend/-/pend-1.0.0.tgz","integrity":"sha512-VpNZGICyBdFF5AdVKuVXpBxfw5iW4aOcu0GiQFnTu+wdw4cmIxI+734kNDxb1Ku9W36Cqj864lDfogdTUEW+8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHSEKgd8KobM4rVesX2m3zgbo2xINRYNJ27/ZM/ge6X8AiEAtBmVOSUIYZl7rZ79jzZgJtESTNWeW5/1zKg2ScCGtPM="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{}},"1.1.0":{"name":"pend","version":"1.1.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"_id":"pend@1.1.0","dist":{"shasum":"1b28a5cb49e02e25a84aa7229917fbdb61e72c8d","tarball":"https://registry.npmjs.org/pend/-/pend-1.1.0.tgz","integrity":"sha512-RhhlIASIPELqiIBd7skqu+FOhKiN2lvYQUnRgneM3GmKEUCSy++6NOGdLql9X8bHCDDURko+1Ju+gsSBIdT+fg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFld8Ys65A5qQ2ksrm3hjelnh01yBRWQtxnHksmfCrZTAiEAgR+B967rNqF67OTysRn48ifeeCQ4+clYNwpSqI6bvL8="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{}},"1.1.1":{"name":"pend","version":"1.1.1","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"_id":"pend@1.1.1","dist":{"shasum":"fabca8f067ff204012fa7645759ef9c158fbc907","tarball":"https://registry.npmjs.org/pend/-/pend-1.1.1.tgz","integrity":"sha512-2wgSKau7KGHo8r5VBGafjc3xX6NVUluPel9GsBFJvismeT1kvmFs6qaUTIhNQ+VMpDBh8jHOigYqlxiP3z6Svw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDs/jdPm3SXv38cpZKOMzJIpca3uAquvqr9e5pk1L5aGAIgYIur+4asaplHsKwltOu5leQ2yOBia5vyNH688RWHHFY="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{}},"1.1.2":{"name":"pend","version":"1.1.2","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"gitHead":"453dd499161e68b0ff84bff75890179880ad0350","homepage":"https://github.com/superjoe30/node-pend","_id":"pend@1.1.2","_shasum":"b3760218c85b93ca893f4088005d3ff80253252b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"dist":{"shasum":"b3760218c85b93ca893f4088005d3ff80253252b","tarball":"https://registry.npmjs.org/pend/-/pend-1.1.2.tgz","integrity":"sha512-+Iy6LasvOrK46O9EzqgxQ2tBRk9YOfPjGrDt2aercqBwCpvpMsQoQnj8v6+WEW+bGQEt/UIKDmVoFl4yoaktzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAw06ss+ECu75087syHWQMbQdimjBWvT4YRlTxdji9PpAiBm3+wrjqvqPGVInGIZxSNbcdWlBoLrIen78KDwzqgDTg=="}]},"directories":{}},"1.1.3":{"name":"pend","version":"1.1.3","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"_id":"pend@1.1.3","dist":{"shasum":"ca68dd39e6dd7f8d3f8801dcdbcb44846c431845","tarball":"https://registry.npmjs.org/pend/-/pend-1.1.3.tgz","integrity":"sha512-oQiRXTFeL4KY2IAVuBsaokdEw4+WpKUu8qr/bFyKEpaqpcaflo3M/v5AORXbKxd1liRNtoOEfAV5FRjzrr1jJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt4qIMqEt0MXyPMD9RBBmlLkyr2E1pwfevgFTrGksiFwIgEe3SzSRiYlPG8mpcF5DKllAbTZ9cvSUZDE8qNGp6DA0="}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{}},"1.2.0":{"name":"pend","version":"1.2.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/andrewrk/node-pend.git"},"bugs":{"url":"https://github.com/andrewrk/node-pend/issues"},"gitHead":"ed57bbe8520518dca24d0c6bb847ffb6b68ae6f9","_id":"pend@1.2.0","_shasum":"7a57eb550a6783f9115331fcf4663d5c8e007a50","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"dist":{"shasum":"7a57eb550a6783f9115331fcf4663d5c8e007a50","tarball":"https://registry.npmjs.org/pend/-/pend-1.2.0.tgz","integrity":"sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBq82ez7WhlG491w47bTxPHdW8xsJQ5JEhWYFfQlGnPRAiAzIHmAjlphdODmnZIzI01dFNTMbMf9T2AAZAmtn3yGZg=="}]},"directories":{}}},"readme":"# Pend\n\nDead-simple optimistic async helper.\n\n## Usage\n\n```js\nvar Pend = require('pend');\nvar pend = new Pend();\npend.max = 10; // defaults to Infinity\nsetTimeout(pend.hold(), 1000); // pend.wait will have to wait for this hold to finish\npend.go(function(cb) {\n  console.log(\"this function is immediately executed\");\n  setTimeout(function() {\n    console.log(\"calling cb 1\");\n    cb();\n  }, 500);\n});\npend.go(function(cb) {\n  console.log(\"this function is also immediately executed\");\n  setTimeout(function() {\n    console.log(\"calling cb 2\");\n    cb();\n  }, 1000);\n});\npend.wait(function(err) {\n  console.log(\"this is excuted when the first 2 have returned.\");\n  console.log(\"err is a possible error in the standard callback style.\");\n});\n```\n\nOutput:\n\n```\nthis function is immediately executed\nthis function is also immediately executed\ncalling cb 1\ncalling cb 2\nthis is excuted when the first 2 have returned.\nerr is a possible error in the standard callback style.\n```\n","maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"time":{"modified":"2023-07-12T19:11:43.224Z","created":"2013-08-02T06:43:13.047Z","1.0.0":"2013-08-02T06:43:14.314Z","1.1.0":"2013-08-10T18:10:53.649Z","1.1.1":"2013-09-24T07:32:33.755Z","1.1.2":"2014-07-05T07:41:37.829Z","1.1.3":"2014-08-20T23:34:46.349Z","1.2.0":"2014-11-23T21:52:52.675Z"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"repository":{"type":"git","url":"git://github.com/andrewrk/node-pend.git"},"bugs":{"url":"https://github.com/andrewrk/node-pend/issues"},"license":"MIT","readmeFilename":"README.md","users":{"tenaciousmv":true,"debearloper":true,"jeremygaither":true,"flumpus-dev":true}}