
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
koa-better-response-time
Advanced tools
Response time for Koa.js. Inspired from response-time with same object options.
The "response time" is defined here as the elapsed time from when a request enters this middleware to when the headers are written out to the client.
Installation# npm ..
$ npm install koa-better-response-time
# yarn ..
$ yarn add koa-better-response-time
UsageThis is a practical example of how to use.
const Koa = require('koa');
const xResponseTime = require('koa-better-response-time');
const app = new Koa();
// You can pass options object to xResponseTime.
app.use(xResponseTime());
OPTIONSYou can pass an object that contains these keys to the xResponseTime middleware:
digits — (Number) The fixed number of digits to include in the output. default to 3 (ex: 2.300ms).headerName — (String) Header name to use. default to 'X-Response-Time'suffix — (Boolean) Display 'ms' beside the time. default to true (ex: 2.300ms vs 2.300).NoteBest to .use() at the top before any other middleware, to wrap all subsequent middleware.
FAQs
---
We found that koa-better-response-time demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.