UNPKG

request-id

Version:

Allows you to identify client requests within non-sequential logs such as Syslog by adding a response header of `X-Request-Id`. Allows setting value via query parameter or request header. For Koa and Express.

53 lines (52 loc) 1.49 kB
{ "name": "request-id", "description": "Allows you to identify client requests within non-sequential logs such as Syslog by adding a response header of `X-Request-Id`. Allows setting value via query parameter or request header. For Koa and Express.", "version": "0.11.1", "author": "Wil Moore III <wil.moore@wilmoore.com>", "bugs": { "url": "https://github.com/wilmoore/request-id.js/issues" }, "dependencies": { "uuid": "^3.0.1" }, "devDependencies": { "chai": "^1.9.2", "express": "^4.9.7", "koa": "^0.12.2", "mocha": "^3.2.0", "supertest": "^0.14.0" }, "files": [ "defaults.js", "koa.js", "express.js", "license", "package.json" ], "keywords": [ "ecosystem:express", "ecosystem:koa", "express", "header", "http", "koa", "middleware", "request-id", "syslog", "x-request-id" ], "homepage": "https://github.com/wilmoore/request-id.js", "license": "MIT", "main": "koa.js", "repository": { "type": "git", "url": "https://github.com/wilmoore/request-id.js" }, "scripts": { "authors": "git shortlog -nes | tr -s ' ' | cut -f2- > authors", "release-major": "npm version major && git push --follow-tags && npm publish", "release-minor": "npm version minor && git push --follow-tags && npm publish", "release-patch": "npm version patch && git push --follow-tags && npm publish", "test": "NODE_ENV=test mocha --harmony --reporter spec" } }