package.json 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "name": "@e22m4u/js-trie-router",
  3. "version": "0.0.13",
  4. "description": "HTTP router for Node.js based on a prefix tree",
  5. "type": "module",
  6. "module": "./src/index.js",
  7. "main": "./dist/cjs/index.cjs",
  8. "exports": {
  9. "types": "./src/index.d.ts",
  10. "import": "./src/index.js",
  11. "require": "./dist/cjs/index.cjs"
  12. },
  13. "engines": {
  14. "node": ">=16"
  15. },
  16. "scripts": {
  17. "lint": "tsc && eslint ./src",
  18. "lint:fix": "tsc && eslint ./src --fix",
  19. "format": "prettier --write \"./src/**/*.{js,ts}\"",
  20. "test": "npm run lint && c8 --reporter=text-summary mocha --bail",
  21. "test:coverage": "npm run lint && c8 --reporter=text mocha",
  22. "build:cjs": "node build-cjs.js",
  23. "prepare": "husky"
  24. },
  25. "repository": {
  26. "type": "git",
  27. "url": "git+https://github.com/e22m4u/js-trie-router.git"
  28. },
  29. "keywords": [
  30. "router",
  31. "trie",
  32. "http",
  33. "server",
  34. "nodejs"
  35. ],
  36. "author": "e22m4u <e22m4u@yandex.ru>",
  37. "license": "MIT",
  38. "homepage": "https://github.com/e22m4u/js-trie-router",
  39. "dependencies": {
  40. "@e22m4u/js-format": "~0.1.5",
  41. "@e22m4u/js-path-trie": "~0.0.5",
  42. "@e22m4u/js-service": "~0.1.3",
  43. "debug": "~4.3.7",
  44. "http-errors": "~2.0.0",
  45. "statuses": "~2.0.1"
  46. },
  47. "devDependencies": {
  48. "@commitlint/cli": "~19.5.0",
  49. "@commitlint/config-conventional": "~19.5.0",
  50. "@eslint/js": "~9.14.0",
  51. "@types/chai-as-promised": "~8.0.1",
  52. "c8": "~10.1.2",
  53. "chai": "~5.1.2",
  54. "chai-as-promised": "~8.0.0",
  55. "esbuild": "~0.24.0",
  56. "eslint": "~9.14.0",
  57. "eslint-config-prettier": "~9.1.0",
  58. "eslint-plugin-chai-expect": "~3.1.0",
  59. "eslint-plugin-jsdoc": "~50.4.3",
  60. "eslint-plugin-mocha": "~10.5.0",
  61. "globals": "~15.12.0",
  62. "husky": "~9.1.6",
  63. "mocha": "~10.8.2",
  64. "prettier": "~3.3.3",
  65. "typescript": "~5.6.3"
  66. }
  67. }