UNPKG

express-errorhandlers

Version:
83 lines (82 loc) 2.52 kB
{ "name": "express-errorhandlers", "version": "1.1.3", "description": "Error handler for expressjs", "main": "dist/index.js", "types": "./dist/index.d.ts", "scripts": { "start": "npm run start:ts", "start:ts": "EXPRESS_ERRROHANDLERS_LISTEN=1 node --inspect -r ts-node/register ./demo.ts", "start:js": "EXPRESS_ERRROHANDLERS_LISTEN=1 node ./demo.js", "build:pre": "npm run format && npm run tslint && npm run test && npm run build", "build": "tsc", "postbuild": "copyfiles -u 1 src/views/**/*.pug dist/", "test": "jest --config jest.config.js", "format": "npm run format:prettier", "format:prettier": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.test.ts\"", "lint": "npm run lint:md && npm run lint:ts", "lint:md": "remark .", "lint:ts": "eslint \"{src,__tests__}/**/*.{ts,tsx}\"", "lint:fix": "eslint --fix \"{src,__tests__}/**/*.{ts,tsx}\"", "prepare": "npm run build", "coverage": "jest --coverage --config jest.config.js" }, "repository": { "type": "git", "url": "git+https://github.com/cam-inc/express-errorhandlers.git" }, "keywords": [ "expressjs", "express-middleware", "errorhanders", "typescript" ], "author": "CAM, Inc.", "license": "MIT", "bugs": { "url": "https://github.com/cam-inc/express-errorhandlers/issues" }, "homepage": "https://github.com/cam-inc/express-errorhandlers#readme", "devDependencies": { "@types/accepts": "^1.3.5", "@types/debug": "^4.1.5", "@types/express": "^4.17.2", "@types/jest": "^24.0.22", "@types/morgan": "^1.7.37", "@types/node": "^12.12.9", "@types/pug": "^2.0.4", "@types/supertest": "^2.0.8", "@typescript-eslint/eslint-plugin": "^2.7.0", "@typescript-eslint/parser": "^2.7.0", "body-parser": "^1.18.2", "copyfiles": "^2.1.1", "eslint": "^6.6.0", "eslint-config-prettier": "^6.5.0", "eslint-plugin-prettier": "^3.1.1", "express": "^4.17.1", "jest": "^27.0.4", "morgan": "^1.9.1", "nodemon": "^2.0.3", "prettier": "^1.19.1", "remark-cli": "^9.0.0", "remark-lint": "^8.0.0", "remark-preset-lint-recommended": "^5.0.0", "supertest": "^4.0.2", "ts-jest": "^27.0.3", "ts-node": "^8.5.0", "typescript": "^3.7.2" }, "dependencies": { "accepts": "^1.3.7", "debug": "^4.1.1", "pug": "^3.0.1" }, "engines": { "node": ">=8.0.0" }, "remarkConfig": { "plugins": [ "remark-preset-lint-recommended" ] } }