UNPKG

@contrast/route-metrics

Version:

`route-metrics` allows server performance, exclusive of network time, to be compared on a route-by-route basis. It was created to compare server performance with and without `@contrast/agent` being loaded and active.

57 lines (56 loc) 1.47 kB
{ "name": "@contrast/route-metrics", "version": "2.0.0", "description": "", "main": "lib/index.js", "bin": { "log-processor": "./lib/log-processor/index.js" }, "files": [ "lib/", "!lib/**/*.test.js", "example/template.js" ], "scripts": { "prepare": "run-script-os", "prepare:windows": "powershell write-host -fore Red WARN: DETECT-SECRETS IS NOT USED ON WINDOWS!", "prepare:default": "cp .githooks/pre-commit .git/hooks/pre-commit && chmod +x .git/hooks/pre-commit", "test": "mocha --exclude 'node_modules/**/*' '**/*.test.js'", "test:cov": "nyc npm run test", "log-processor": "node ./lib/log-processor/index.js" }, "keywords": [ "metrics", "performance", "measurement", "web", "server" ], "author": "Contrast Security, Inc.", "contributors": [ "Bruce A. MacNaughton <bmacnaughton@gmail.com>", "Dmitriy Petrov <pdmitriy687@gmail.com>" ], "exports": { "import": "./lib/index-esm.mjs", "require": "./lib/index-cjs.cjs" }, "license": "MIT", "dependencies": { "@contrast/find-package-json": "^1.2.0", "shimmer": "^1.2.1" }, "devDependencies": { "@contrast/agent": "^5.21.0", "chai": "^4.3.4", "chai-as-promised": "^7.1.1", "eslint": "^8.57.1", "express": "^4.17.1", "mocha": "^9.2.2", "node-fetch": "^2.6.7", "nyc": "^15.1.0", "run-script-os": "^1.1.6", "semver": "^7.3.7", "sinon": "^11.1.2" } }