{"id":18535297,"url":"https://github.com/tinyhttp/ping","last_synced_at":"2025-08-26T10:58:50.476Z","repository":{"id":57166680,"uuid":"391024277","full_name":"tinyhttp/ping","owner":"tinyhttp","description":"🏓 Response time checker middleware","archived":false,"fork":false,"pushed_at":"2023-05-27T19:09:15.000Z","size":97,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-24T00:09:41.351Z","etag":null,"topics":["express","middleware","nodejs","perf","performance","ping","ping-middleware","tinyhttp"],"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/tinyhttp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"v1rtl","liberapay":"v1rtl","custom":["https://stakes.social/0x14308514785B216904a41aB817282d25425Cce39","https://paypal.me/v1rtl","https://qiwi.com/n/V1RTL","https://yoomoney.ru/to/410014774355272"],"issuehunt":"talentlessguy"}},"created_at":"2021-07-30T10:27:06.000Z","updated_at":"2024-08-03T09:22:15.000Z","dependencies_parsed_at":"2025-04-09T15:40:56.062Z","dependency_job_id":"d24ae62b-29fa-4a2c-9c72-9f3319603e9e","html_url":"https://github.com/tinyhttp/ping","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"tinyhttp/repo-template","purl":"pkg:github/tinyhttp/ping","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyhttp","download_url":"https://codeload.github.com/tinyhttp/ping/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyhttp%2Fping/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272213286,"owners_count":24893184,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["express","middleware","nodejs","perf","performance","ping","ping-middleware","tinyhttp"],"created_at":"2024-11-06T19:21:59.176Z","updated_at":"2025-08-26T10:58:50.396Z","avatar_url":"https://github.com/tinyhttp.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\n# @tinyhttp/ping\n\n[![npm][npm-img]][npm-url] [![GitHub Workflow Status][gh-actions-img]][github-actions] [![Coverage][cov-img]][cov-url]\n\n\u003c/div\u003e\n\n\u003e Inspired by [koa-response-time](https://github.com/koajs/response-time)\n\nResponse time checker for Node.js. Sets `X-Response-Time` header using `process.hrtime()`\n\n## Install\n\n```sh\npnpm i @tinyhttp/ping\n```\n\n## API\n\n```js\nimport { ping } from '@tinyhttp/ping'\n```\n\n### Options\n\n#### `round`\n\nRound the ping time. Default is set to true.\n\n## Example\n\n```js\nimport { ping } from '@tinyhttp/ping'\nimport { createServer } from 'http'\nimport path from 'path'\n\ncreateServer(async (req, res) =\u003e {\n  ping()(req, res)\n  res.end('Hello World')\n}).listen(3000)\n```\n\n[npm-url]: https://npmjs.com/package/@tinyhttp/ping\n[github-actions]: https://github.com/tinyhttp/ping/actions\n[gh-actions-img]: https://img.shields.io/github/actions/workflow/status/tinyhttp/ping/ci.yml?branch=master\u0026style=for-the-badge\u0026logo=github\u0026label=\u0026color=hotpink\n[cov-img]: https://img.shields.io/coveralls/github/tinyhttp/ping?style=for-the-badge\u0026color=hotpink\n[cov-url]: https://coveralls.io/github/tinyhttp/ping\n[npm-img]: https://img.shields.io/npm/dt/@tinyhttp/ping?style=for-the-badge\u0026color=hotpink\n","funding_links":["https://ko-fi.com/v1rtl","https://liberapay.com/v1rtl","https://stakes.social/0x14308514785B216904a41aB817282d25425Cce39","https://paypal.me/v1rtl","https://qiwi.com/n/V1RTL","https://yoomoney.ru/to/410014774355272","https://issuehunt.io/r/talentlessguy"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhttp%2Fping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyhttp%2Fping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyhttp%2Fping/lists"}