{"id":24779331,"url":"https://github.com/dwtechs/winstan-plugin-express-perf.js","last_synced_at":"2025-04-10T01:50:23.318Z","repository":{"id":272077509,"uuid":"914989626","full_name":"DWTechs/Winstan-plugin-express-perf.js","owner":"DWTechs","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-15T14:48:19.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T03:32:12.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/DWTechs.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":"2025-01-10T18:18:26.000Z","updated_at":"2025-03-15T14:47:13.000Z","dependencies_parsed_at":"2025-01-11T23:28:12.599Z","dependency_job_id":"a603319e-bad5-45e2-b34b-3fa77ae5fae5","html_url":"https://github.com/DWTechs/Winstan-plugin-express-perf.js","commit_stats":null,"previous_names":["dwtechs/winstan-plugin-express-perf.js"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DWTechs%2FWinstan-plugin-express-perf.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DWTechs%2FWinstan-plugin-express-perf.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DWTechs%2FWinstan-plugin-express-perf.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DWTechs%2FWinstan-plugin-express-perf.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DWTechs","download_url":"https://codeload.github.com/DWTechs/Winstan-plugin-express-perf.js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142843,"owners_count":21054667,"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-01-29T09:38:18.727Z","updated_at":"2025-04-10T01:50:23.301Z","avatar_url":"https://github.com/DWTechs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![License: MIT](https://img.shields.io/npm/l/@dwtechs/winstan-plugin-express-perf.svg?color=brightgreen)](https://opensource.org/licenses/MIT)\n[![npm version](https://badge.fury.io/js/%40dwtechs%2Fwinstan-plugin-express-perf.svg)](https://www.npmjs.com/package/@dwtechs/winstan-plugin-express-perf)\n[![last version release date](https://img.shields.io/github/release-date/DWTechs/Winstan-plugin-express-perf.js)](https://www.npmjs.com/package/@dwtechs/winstan-plugin-express-perf)\n[![minified size](https://img.shields.io/bundlephobia/min/@dwtechs/winstan-plugin-express-perf?color=brightgreen)](https://www.npmjs.com/package/@dwtechs/winstan-plugin-express-perf)\n\n- [Synopsis](#synopsis)\n- [Support](#support)\n- [Installation](#installation)\n- [Usage](#usage)\n  - [ES6](#es6)\n- [Contributors](#contributors)\n- [Stack](#stack)\n\n\n## Synopsis\n\n**[Winstan-plugin-express-perf.js](https://github.com/DWTechs/Winstan-plugin-express-perf.js)** is an open source Express performance measurement plugin for Winstan library.\n\n**This plugin will log the time it took to process a request.**\n\n- no dependency\n- Very lightweight\n- Thoroughly tested\n- Works in Javascript and Typescript\n- Can be used as EcmaScrypt module\n- Written in Typescript\n\n\n## Support\n\n- node: 22\n\nThis is the oldest targeted versions. The library should work properly on older versions of Node.js but we do not support it officially.  \n\n\n## Installation\n\n```bash\n$ npm i @dwtechs/winstan-plugin-express-perf\n```\n\n\n## Usage\n\n\n### ES6 / TypeScript\n\n```javascript\n\nimport express from \"express\";\nimport perf from '@dwtechs/winstan-plugin-express-perf';\n\nconst app = express();\napp.use(express.json());\n// performance measurement starts for any call to the following routes\napp.use(perf.start);\napp.use(\"/\", route);\n// Performance measurement ends\napp.use(perf.end);\n\n```\n\nNote that the plugin is standalone as it installs Winstan as a dependency.\nOf course you will usually need Winstan to log other things in you application. \n\n\n## Contributors\n\nWinstan-plugin-express-perf.js is still in development and we would be glad to get all the help you can provide.\nTo contribute please read **[contributor.md](https://github.com/DWTechs/Winstan-plugin-express-perf.js/blob/main/contributor.md)** for detailed installation guide.\n\n\n## Stack\n\n| Purpose         |                    Choice                    |                                                     Motivation |\n| :-------------- | :------------------------------------------: | -------------------------------------------------------------: |\n| repository      |        [Github](https://github.com/)         |     hosting for software development version control using Git |\n| package manager |     [npm](https://www.npmjs.com/get-npm)     |                                default node.js package manager |\n| language        | [TypeScript](https://www.typescriptlang.org) | static type checking along with the latest ECMAScript features |\n| module bundler  |      [Rollup](https://rollupjs.org)          |                        advanced module bundler for ES6 modules |\n| unit testing    |          [Jest](https://jestjs.io/)          |                  delightful testing with a focus on simplicity |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwtechs%2Fwinstan-plugin-express-perf.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwtechs%2Fwinstan-plugin-express-perf.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwtechs%2Fwinstan-plugin-express-perf.js/lists"}