UNPKG

throw-http-errors

Version:

Custom errors for HTTP status codes.

53 lines (52 loc) 1.65 kB
{ "name": "throw-http-errors", "version": "4.0.1", "description": "Custom errors for HTTP status codes.", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc", "prepublish": "tsc", "coverage": "istanbul cover node_modules/ts-mocha/bin/ts-mocha tests/{**/,/}*.ts -- -R spec", "precoveralls": "istanbul cover node_modules/ts-mocha/bin/ts-mocha tests/{**/,/}*.ts --report lcovonly -- -R spec && npm i coveralls@2", "coveralls": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.ts", "test": "make test", "tests": "ts-mocha tests/**/*.test.ts", "lint": "eslint src/**/*.ts" }, "repository": { "type": "git", "url": "git+https://github.com/eldimious/throw-error.git" }, "keywords": [ "throw", "errors", "throw errors", "http errors" ], "author": "Dimos Botsaris <botsaris.d@gmail.com>", "license": "ISC", "bugs": { "url": "https://github.com/eldimious/throw-error/issues" }, "homepage": "https://github.com/eldimious/throw-error#readme", "devDependencies": { "@types/chai": "^4.3.0", "@types/expect": "^24.3.0", "@types/mocha": "^9.0.0", "@types/node": "^17.0.8", "@typescript-eslint/eslint-plugin": "^5.9.1", "@typescript-eslint/parser": "^5.9.1", "chai": "^4.3.4", "coveralls": "^3.1.1", "eslint": "^8.6.0", "eslint-config-airbnb": "^19.0.4", "eslint-config-airbnb-typescript": "^16.1.0", "eslint-plugin-prettier": "^4.0.0", "istanbul": "^0.4.5", "prettier": "^2.5.1", "ts-mocha": "^8.0.0", "ts-node": "^10.4.0", "typescript": "^4.5.4" } }