{"id":28684913,"url":"https://github.com/node-modules/pedding","last_synced_at":"2025-06-14T03:07:49.334Z","repository":{"id":4709853,"uuid":"5857605","full_name":"node-modules/pedding","owner":"node-modules","description":"Just pedding for callback.","archived":false,"fork":false,"pushed_at":"2025-01-01T11:48:22.000Z","size":25,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-25T15:53:35.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/node-modules.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-09-18T14:30:15.000Z","updated_at":"2025-04-09T14:24:50.000Z","dependencies_parsed_at":"2025-01-18T12:48:22.777Z","dependency_job_id":"64087816-d108-48bb-b9c6-1c8f09173c87","html_url":"https://github.com/node-modules/pedding","commit_stats":null,"previous_names":["node-modules/pedding","alibaba-archive/pedding"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/node-modules/pedding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fpedding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fpedding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fpedding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fpedding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-modules","download_url":"https://codeload.github.com/node-modules/pedding/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-modules%2Fpedding/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259752078,"owners_count":22905972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-14T03:07:42.427Z","updated_at":"2025-06-14T03:07:49.329Z","avatar_url":"https://github.com/node-modules.png","language":"TypeScript","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 =\u003e {\n  done = pending(2, done);\n  http.get('http://fengmk2.github.com', res =\u003e {\n    done();\n  });\n  http.get('http://www.taobao.com', res =\u003e {\n    done();\n  });\n});\n```\n\nESM and TypeScript\n\n```ts\nimport { pending } from 'pedding';\n\nit('should request two resources', done =\u003e {\n  done = pending(2, done);\n  http.get('http://fengmk2.github.com', res =\u003e {\n    done();\n  });\n  http.get('http://www.taobao.com', res =\u003e {\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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fpedding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-modules%2Fpedding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-modules%2Fpedding/lists"}