package.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. {
  2. "name": "@e22m4u/js-path-trie",
  3. "version": "0.0.8",
  4. "description": "A router for Node.js based on a prefix tree",
  5. "type": "module",
  6. "types": "./src/index.d.ts",
  7. "module": "./src/index.js",
  8. "main": "./dist/cjs/index.cjs",
  9. "exports": {
  10. "types": "./src/index.d.ts",
  11. "import": "./src/index.js",
  12. "require": "./dist/cjs/index.cjs"
  13. },
  14. "engines": {
  15. "node": ">=16"
  16. },
  17. "scripts": {
  18. "lint": "tsc && eslint ./src",
  19. "lint:fix": "tsc && eslint ./src --fix",
  20. "format": "prettier --write \"./src/**/*.js\"",
  21. "test": "npm run lint && c8 --reporter=text-summary mocha",
  22. "test:coverage": "npm run lint && c8 --reporter=text mocha",
  23. "build:cjs": "rimraf ./dist/cjs && node --no-warnings=ExperimentalWarning build-cjs.js",
  24. "prepare": "husky"
  25. },
  26. "repository": {
  27. "type": "git",
  28. "url": "git+https://github.com/e22m4u/js-path-trie.git"
  29. },
  30. "keywords": [
  31. "path",
  32. "trie",
  33. "router"
  34. ],
  35. "author": "e22m4u <e22m4u@yandex.ru>",
  36. "license": "MIT",
  37. "homepage": "https://github.com/e22m4u/js-path-trie",
  38. "dependencies": {
  39. "@e22m4u/js-format": "0.1.x",
  40. "debug": "~4.3.7",
  41. "path-to-regexp": "~8.2.0"
  42. },
  43. "devDependencies": {
  44. "@commitlint/cli": "~19.6.0",
  45. "@commitlint/config-conventional": "~19.6.0",
  46. "@eslint/js": "~9.15.0",
  47. "c8": "~10.1.2",
  48. "chai": "~5.1.2",
  49. "esbuild": "~0.24.0",
  50. "eslint": "~9.15.0",
  51. "eslint-config-prettier": "~9.1.0",
  52. "eslint-plugin-chai-expect": "~3.1.0",
  53. "eslint-plugin-jsdoc": "~50.5.0",
  54. "eslint-plugin-mocha": "~10.5.0",
  55. "globals": "~15.12.0",
  56. "husky": "~9.1.7",
  57. "mocha": "~10.8.2",
  58. "prettier": "~3.3.3",
  59. "rimraf": "~6.0.1",
  60. "typescript": "~5.7.2"
  61. }
  62. }