Skip to content

DanDeMicco/api-response-times

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

api-response-times

Records approximate api respoponse times to a file

Example

See the test folder for a complete example. Basically just require the middleware and instantiate it with app.use where all your middlewares are. Make sure you do this before your your routes.

var app = express();
var fileName = "./api_response_test.txt";
var urlStr = "/api/"
var responseTimes = require("api-response-times")(fileName, urlStr);
... fast forward to your middlwares
app.use(responseTimes);
...

About

node.js module for writing response times to a file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published