package.json 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "name": "@e22m4u/js-trie-router",
  3. "version": "0.0.4",
  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. "import": "./src/index.js",
  10. "require": "./dist/cjs/index.cjs"
  11. },
  12. "engines": {
  13. "node": ">=16"
  14. },
  15. "scripts": {
  16. "lint": "tsc && eslint ./src",
  17. "lint:fix": "tsc && eslint ./src --fix",
  18. "format": "prettier --write \"./src/**/*.{js,ts}\"",
  19. "test": "npm run lint && c8 --reporter=text-summary mocha --bail",
  20. "test:coverage": "npm run lint && c8 --reporter=text mocha",
  21. "build:cjs": "node build-cjs.js",
  22. "prepare": "husky"
  23. },
  24. "repository": {
  25. "type": "git",
  26. "url": "git+https://github.com/e22m4u/js-trie-router.git"
  27. },
  28. "keywords": [
  29. "router",
  30. "trie",
  31. "http",
  32. "server",
  33. "nodejs"
  34. ],
  35. "author": "e22m4u <e22m4u@yandex.ru>",
  36. "license": "MIT",
  37. "homepage": "https://github.com/e22m4u/js-trie-router",
  38. "dependencies": {
  39. "@e22m4u/js-format": "~0.1.4",
  40. "@e22m4u/js-path-trie": "~0.0.4",
  41. "@e22m4u/js-service": "~0.1.2",
  42. "debug": "~4.3.7",
  43. "http-errors": "~2.0.0",
  44. "statuses": "~2.0.1"
  45. },
  46. "devDependencies": {
  47. "@commitlint/cli": "~19.5.0",
  48. "@commitlint/config-conventional": "~19.5.0",
  49. "@eslint/js": "~9.12.0",
  50. "@types/chai-as-promised": "~8.0.1",
  51. "c8": "~10.1.2",
  52. "chai": "~5.1.1",
  53. "chai-as-promised": "~8.0.0",
  54. "esbuild": "~0.24.0",
  55. "eslint": "~9.12.0",
  56. "eslint-config-prettier": "~9.1.0",
  57. "eslint-plugin-chai-expect": "~3.1.0",
  58. "eslint-plugin-jsdoc": "~50.3.1",
  59. "eslint-plugin-mocha": "~10.5.0",
  60. "globals": "~15.10.0",
  61. "husky": "~9.1.6",
  62. "mocha": "~10.7.3",
  63. "prettier": "~3.3.3",
  64. "typescript": "~5.6.2"
  65. }
  66. }