{"_id":"pedding","_rev":"18-14eff2b08f6438fbefd513b7dcbd0456","name":"pedding","dist-tags":{"latest":"2.0.1"},"versions":{"0.0.1":{"name":"pedding","version":"0.0.1","keywords":["pedding","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@0.0.1","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"20b5247049566fef77f1707f5630a6e2dc180f87","tarball":"https://registry.npmjs.org/pedding/-/pedding-0.0.1.tgz","integrity":"sha512-oMLzjSKMRXdT6j0gb1PI7O2ZsX9jY9Dv0T58a/A64RamCansl3X3bZdK9xiCS/DBQQZhMdSlLVfZn09wsudwBw==","signatures":[{"sig":"MEUCIFj3fDKogbyVpLSA64aZ4L0oNbInGJWD3rs4rgGy4ERtAiEAjIHhkIvfRsyCHXuaj1PSX6Kg9/SV70/kNI30cbc/HUg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","scripts":{"test":"make test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/fengmk2/pedding.git","type":"git"},"_npmVersion":"1.1.61","description":"Just pedding for callback.","devDependencies":{"mocha":"*","should":"*"},"directories":{}},"0.0.2":{"name":"pedding","version":"0.0.2","keywords":["pedding","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@0.0.2","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"bugs":{"url":"https://github.com/fengmk2/pedding/issues"},"dist":{"shasum":"a580219ca336348ab4f1c1ef60e4413a3ce79518","tarball":"https://registry.npmjs.org/pedding/-/pedding-0.0.2.tgz","integrity":"sha512-Hp71K9Xj8IV7T7UuRWA5EF3ItBflncDJzjrgW0FmTDDxdC/tFmSYAWt/wnxhvVtY3KNSl3d2h1nb2NRBAIqRvg==","signatures":[{"sig":"MEYCIQC+2267iMQ6bFepaPr/5JqOQBknniI8cAa4ajME5RLXrgIhAN039nDcrTQn6QMqpj9MREwiMcmfNK46ab/FPtbTdUpB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"make test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/fengmk2/pedding.git","type":"git"},"_npmVersion":"1.2.30","description":"Just pedding for callback.","devDependencies":{"mocha":"*","should":"*"},"directories":{}},"0.0.3":{"name":"pedding","version":"0.0.3","keywords":["pedding","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@0.0.3","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"}],"bugs":{"url":"https://github.com/fengmk2/pedding/issues"},"dist":{"shasum":"dfcbf89519c9634d393b910bccdbbf0773944c97","tarball":"https://registry.npmjs.org/pedding/-/pedding-0.0.3.tgz","integrity":"sha512-qIh7fxELo8fnc9fhNDEyxBIWM4PNNPV1vYTMaiWXF/AHoeAuEQbOjISV/ieV25ew0YSs+1N+LVEeAz8/xwfO8g==","signatures":[{"sig":"MEUCIGD2FdwsMki3QskiLypzrWFI8UWoI7+Rh4JIDuIKxdevAiEAz7hj/mRI2qMF0733/TUPM0DVDN9eCHNa36LRM0GdNpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"make test"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/fengmk2/pedding.git","type":"git"},"_npmVersion":"1.2.32","description":"Just pedding for callback.","devDependencies":{"chai":"*","mocha":"*"},"directories":{}},"1.0.0":{"name":"pedding","version":"1.0.0","keywords":["pedding","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@1.0.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead-horse","email":"dead_horse@qq.com"}],"contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},{"url":"https://github.com/dead-horse","name":"dead-horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/fengmk2/pedding","bugs":{"url":"https://github.com/fengmk2/pedding/issues"},"dist":{"shasum":"7f5098d60307b4ef7240c3d693cb20a9473c6074","tarball":"https://registry.npmjs.org/pedding/-/pedding-1.0.0.tgz","integrity":"sha512-NDgJQUTuLCIxZqjbTVFL0pFMymK+hDIJgsxvJQRSlxyuQ2ib2S2m50XQdiyVo6h4I77Ez/wxAQYo/WEgeIdVXw==","signatures":[{"sig":"MEUCIAZ4h2DxzdBSqeJMMkW2k0Sp2IFQ+w+ELE/zwMqQ+aGuAiEAu0XFl6f16i/uWDFGtt6XWDpDVquETSddKETDektl8e0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"7f5098d60307b4ef7240c3d693cb20a9473c6074","gitHead":"b42a708414a704336e9dee570a963e2dbe43e529","scripts":{"test":"make test-all"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/fengmk2/pedding.git","type":"git"},"_npmVersion":"1.4.13","description":"Just pedding for callback.","devDependencies":{"chai":"*","mocha":"*","component":"*","contributors":"*","mocha-phantomjs":"*"},"directories":{}},"1.1.0":{"name":"pedding","version":"1.1.0","keywords":["pedding","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@1.1.0","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"}],"contributors":[{"url":"https://github.com/fengmk2","name":"fengmk2","email":"fengmk2@gmail.com"},{"url":"https://github.com/dead-horse","name":"dead-horse","email":"dead_horse@qq.com"}],"homepage":"https://github.com/node-modules/pedding#readme","bugs":{"url":"https://github.com/node-modules/pedding/issues"},"dist":{"shasum":"f7b138c288d4bd584eada1215f5bd924f1e1e667","tarball":"https://registry.npmjs.org/pedding/-/pedding-1.1.0.tgz","integrity":"sha512-/+AoumWfszt77NmVjo4/GcJpQ7fUM1Ovlabd1p3mecjLHkL7qsSH1XJWqyk4wca1q74VwdnaW/K464iWT2XZhw==","signatures":[{"sig":"MEUCIQC6LJph65psEjEOpH4WruMGXuwmpolTD+m84CUZcBrvTAIgPsm+fu3J8MT41Pp1XEaZ+u6Ru2a6WHf29D8Ts7/wvNc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f7b138c288d4bd584eada1215f5bd924f1e1e667","gitHead":"d5557162aa0362274de9472fcaa5d8d9b2da7bf5","scripts":{"cnpm":"npm install --registry=https://registry.npm.taobao.org","test":"mocha --check-leaks -R spec -t 5000 test/*.test.js","jshint":"jshint .","test-cov":"istanbul cover node_modules/.bin/_mocha -- --check-leaks -t 5000 test/*.test.js","test-travis":"istanbul cover node_modules/.bin/_mocha --report lcovonly -- --check-leaks -t 5000 test/*.test.js","contributors":"contributors -f plain -o AUTHORS","test-component":"mocha-phantomjs test/index.html"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/pedding.git","type":"git"},"_npmVersion":"3.10.8","description":"Just pedding for callback.","_nodeVersion":"6.9.1","devDependencies":{"chai":"*","mocha":"*","istanbul":"^0.4.5","component":"*","contributors":"*","mocha-phantomjs":"*"},"_npmOperationalInternal":{"tmp":"tmp/pedding-1.1.0.tgz_1478863277358_0.27478896966204047","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"2.0.0":{"name":"pedding","version":"2.0.0","keywords":["pedding","pending","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","_id":"pedding@2.0.0","maintainers":[{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"homepage":"https://github.com/node-modules/pedding#readme","bugs":{"url":"https://github.com/node-modules/pedding/issues"},"dist":{"shasum":"782e061e1441e2e021d2d2b35c5f21c69ff162bb","tarball":"https://registry.npmjs.org/pedding/-/pedding-2.0.0.tgz","fileCount":11,"integrity":"sha512-v1V68/zOSLI0sYULPqDYFEyIVGcTcEN5lZOZOZtluBt6UsvmABKhP03saqs9VnL0wbf+8Qrm/kBfnRCM3W5rEA==","signatures":[{"sig":"MEUCIHSzVYPjNZ7jSdGvwfxqyLzHZB24Qn9HMLObpCTrwsT9AiEA87DPi1ckRYX18wIl381WRd3LZlZEaazqFeWYp5YBPSw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pedding@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12678},"main":"./dist/commonjs/index.js","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"type":"module","types":"./dist/commonjs/index.d.ts","module":"./dist/esm/index.js","engines":{"node":">= 18.19.0"},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"gitHead":"132f38b0675c1ddb42d78bf7826abff1ba69443e","scripts":{"ci":"egg-bin cov","lint":"eslint --cache src test --ext .ts","test":"egg-bin test","preci":"npm run lint && npm run prepublishOnly && attw --pack","pretest":"npm run lint -- --fix && npm run prepublishOnly","prepublishOnly":"tshy && tshy-after"},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"repository":{"url":"git://github.com/node-modules/pedding.git","type":"git"},"_npmVersion":"10.8.2","description":"Just pending for callback.","directories":{},"_nodeVersion":"18.20.5","_hasShrinkwrap":false,"devDependencies":{"tshy":"3","eslint":"8","egg-bin":"6","tshy-after":"1","typescript":"5","@types/node":"22","@types/mocha":"10","@eggjs/tsconfig":"1","eslint-config-egg":"14","@arethetypeswrong/cli":"^0.17.1"},"_npmOperationalInternal":{"tmp":"tmp/pedding_2.0.0_1734852678691_0.6829611196382819","host":"s3://npm-registry-packages-npm-production"}},"2.0.1":{"name":"pedding","version":"2.0.1","description":"Just pending for callback.","repository":{"type":"git","url":"git://github.com/node-modules/pedding.git"},"keywords":["pedding","pending","callback"],"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","engines":{"node":">= 18.19.0"},"devDependencies":{"@arethetypeswrong/cli":"^0.17.1","@eggjs/tsconfig":"1","@types/node":"22","@types/mocha":"10","egg-bin":"6","eslint":"8","eslint-config-egg":"14","tshy":"3","tshy-after":"1","typescript":"5"},"scripts":{"lint":"eslint --cache src test --ext .ts","pretest":"npm run lint -- --fix && npm run prepublishOnly","test":"egg-bin test","preci":"npm run lint && npm run prepublishOnly && attw --pack","ci":"egg-bin cov","prepublishOnly":"tshy && tshy-after"},"type":"module","tshy":{"exports":{".":"./src/index.ts","./package.json":"./package.json"}},"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/commonjs/index.d.ts","default":"./dist/commonjs/index.js"}},"./package.json":"./package.json"},"types":"./dist/commonjs/index.d.ts","main":"./dist/commonjs/index.js","module":"./dist/esm/index.js","_id":"pedding@2.0.1","gitHead":"d6143dac9140537f4f2a49739502f027ab7a4721","bugs":{"url":"https://github.com/node-modules/pedding/issues"},"homepage":"https://github.com/node-modules/pedding#readme","_nodeVersion":"18.20.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-uxQ88Bwwz2ZRXIfgZ+5CCdWcmbsQJJ03itU1/ykLQ960AREBX+chas7a3USCIX3l7JmvYMRpjqipSpiTo7R+fA==","shasum":"fe9b703d82389a85c38f79b00edbc02395eb7534","tarball":"https://registry.npmjs.org/pedding/-/pedding-2.0.1.tgz","fileCount":11,"unpackedSize":13202,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/pedding@2.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTzqbl7IPdvsfcRBnP2eVJWlsk1JvaSmrrElPoR4JcyAiEA4i/NeHxxlKOrtvfCBzw0YxWnZr6f+dkwNuz0EUilWHU="}]},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"directories":{},"maintainers":[{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/pedding_2.0.1_1735732107976_0.6399343555581709"},"_hasShrinkwrap":false}},"time":{"created":"2012-09-18T14:46:08.346Z","modified":"2025-01-01T11:48:28.520Z","0.0.1":"2012-09-18T14:46:21.321Z","0.0.2":"2013-06-22T08:26:45.125Z","0.0.3":"2013-07-02T15:20:34.707Z","1.0.0":"2014-07-05T11:08:51.614Z","1.1.0":"2016-11-11T11:21:19.323Z","2.0.0":"2024-12-22T07:31:18.835Z","2.0.1":"2025-01-01T11:48:28.147Z"},"bugs":{"url":"https://github.com/node-modules/pedding/issues"},"author":{"name":"fengmk2","email":"fengmk2@gmail.com"},"license":"MIT","homepage":"https://github.com/node-modules/pedding#readme","keywords":["pedding","pending","callback"],"repository":{"type":"git","url":"git://github.com/node-modules/pedding.git"},"description":"Just pending for callback.","maintainers":[{"name":"dead-horse","email":"dead_horse@qq.com"},{"name":"dead_horse","email":"dead_horse@qq.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"readme":"# pedding\n\n[![NPM version][npm-image]][npm-url]\n[![Node.js CI](https://github.com/node-modules/pedding/actions/workflows/nodejs.yml/badge.svg)](https://github.com/node-modules/pedding/actions/workflows/nodejs.yml)\n[![Test coverage][codecov-image]][codecov-url]\n[![npm download][download-image]][download-url]\n[![Node.js Version](https://img.shields.io/node/v/pedding.svg?style=flat)](https://nodejs.org/en/download/)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)\n\n[npm-image]: https://img.shields.io/npm/v/pedding.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/pedding\n[codecov-image]: https://codecov.io/github/node-modules/pedding/coverage.svg?branch=master\n[codecov-url]: https://codecov.io/github/node-modules/pedding?branch=master\n[download-image]: https://img.shields.io/npm/dm/pedding.svg?style=flat-square\n[download-url]: https://npmjs.org/package/pedding\n\nUseful tools for unit test: Just pending for callback.\n\n## Installation\n\n### Node.js\n\n```bash\nnpm install pedding\n```\n\n## Usage\n\nCommonJS\n\n```js\nconst { pending } = require('pedding');\n\nit('should request two resources', done => {\n  done = pending(2, done);\n  http.get('http://fengmk2.github.com', res => {\n    done();\n  });\n  http.get('http://www.taobao.com', res => {\n    done();\n  });\n});\n```\n\nESM and TypeScript\n\n```ts\nimport { pending } from 'pedding';\n\nit('should request two resources', done => {\n  done = pending(2, done);\n  http.get('http://fengmk2.github.com', res => {\n    done();\n  });\n  http.get('http://www.taobao.com', res => {\n    done();\n  });\n});\n```\n\n## License\n\n[MIT](LICENSE)\n\n## Contributors\n\n[![Contributors](https://contrib.rocks/image?repo=node-modules/pedding)](https://github.com/node-modules/pedding/graphs/contributors)\n\nMade with [contributors-img](https://contrib.rocks).\n","readmeFilename":"README.md","users":{"fengmk2":true,"wangfeia":true}}