{"id":24472934,"url":"https://github.com/shutterstock/node-timing-middleware","last_synced_at":"2025-08-22T05:39:28.333Z","repository":{"id":16403463,"uuid":"19154375","full_name":"shutterstock/node-timing-middleware","owner":"shutterstock","description":"Expose request timing in express apps","archived":false,"fork":false,"pushed_at":"2017-11-29T21:19:31.000Z","size":16,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":41,"default_branch":"master","last_synced_at":"2025-06-14T16:04:20.250Z","etag":null,"topics":["middleware","monitoring","performance","timing"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chargeover/chargeover_java","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shutterstock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-25T17:24:03.000Z","updated_at":"2020-04-03T16:27:25.000Z","dependencies_parsed_at":"2022-08-28T01:50:59.756Z","dependency_job_id":null,"html_url":"https://github.com/shutterstock/node-timing-middleware","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shutterstock/node-timing-middleware","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shutterstock%2Fnode-timing-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shutterstock%2Fnode-timing-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shutterstock%2Fnode-timing-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shutterstock%2Fnode-timing-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shutterstock","download_url":"https://codeload.github.com/shutterstock/node-timing-middleware/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shutterstock%2Fnode-timing-middleware/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265554806,"owners_count":23787281,"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":["middleware","monitoring","performance","timing"],"created_at":"2025-01-21T08:14:09.656Z","updated_at":"2025-07-17T00:34:14.198Z","avatar_url":"https://github.com/shutterstock.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-timing-middleware\n\nExpose request times to do with as you desire: statsd, log, etc.\n\n[![Build Status](https://secure.travis-ci.org/shutterstock/node-timing-middleware.png)](http://travis-ci.org/shutterstock/node-timing-middleware)\n\n## Caveats\n\nWorks with any express 2+, but express versions 4+ will not return a correct path if:\n\n  * routes are nested\n  * middleware responds to a request rather than a route handler\n\n## Example usage\n\n```javascript\n\nvar timing  = require('timing-middleware');\nvar express = require('express');\n\nvar app = express();\n\napp.use(timing(function(verb, path, duration, req, res) {\n  console.log(verb, path, \"took\", duration, \"ms and returned \", res.statusCode);\n}));\n\napp.get('/fairly_slow_route', function(req, res, next) {\n  setTimeout(function() {\n    res.send('ok!\\n');\n  }, 10);\n});\n```\n\n## License\n\n[MIT](LICENSE) © 2014-2017 Shutterstock Images, LLC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshutterstock%2Fnode-timing-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshutterstock%2Fnode-timing-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshutterstock%2Fnode-timing-middleware/lists"}