package.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. {
  2. "name": "entities",
  3. "version": "7.0.0",
  4. "description": "Encode & decode XML and HTML entities with ease & speed",
  5. "keywords": [
  6. "html entities",
  7. "entity decoder",
  8. "entity encoding",
  9. "html decoding",
  10. "html encoding",
  11. "xml decoding",
  12. "xml encoding"
  13. ],
  14. "repository": {
  15. "type": "git",
  16. "url": "https://github.com/fb55/entities.git"
  17. },
  18. "funding": "https://github.com/fb55/entities?sponsor=1",
  19. "license": "BSD-2-Clause",
  20. "author": "Felix Boehm <me@feedic.com>",
  21. "sideEffects": false,
  22. "type": "module",
  23. "exports": {
  24. ".": {
  25. "import": {
  26. "types": "./dist/esm/index.d.ts",
  27. "default": "./dist/esm/index.js"
  28. },
  29. "require": {
  30. "types": "./dist/commonjs/index.d.ts",
  31. "default": "./dist/commonjs/index.js"
  32. }
  33. },
  34. "./decode": {
  35. "import": {
  36. "types": "./dist/esm/decode.d.ts",
  37. "default": "./dist/esm/decode.js"
  38. },
  39. "require": {
  40. "types": "./dist/commonjs/decode.d.ts",
  41. "default": "./dist/commonjs/decode.js"
  42. }
  43. },
  44. "./escape": {
  45. "import": {
  46. "types": "./dist/esm/escape.d.ts",
  47. "default": "./dist/esm/escape.js"
  48. },
  49. "require": {
  50. "types": "./dist/commonjs/escape.d.ts",
  51. "default": "./dist/commonjs/escape.js"
  52. }
  53. }
  54. },
  55. "main": "./dist/commonjs/index.js",
  56. "module": "./dist/esm/index.js",
  57. "types": "./dist/commonjs/index.d.ts",
  58. "files": [
  59. "decode.js",
  60. "decode.d.ts",
  61. "escape.js",
  62. "escape.d.ts",
  63. "dist",
  64. "src"
  65. ],
  66. "scripts": {
  67. "build:docs": "typedoc --hideGenerator src/index.ts",
  68. "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
  69. "build:trie": "node --import=tsx scripts/write-decode-map.ts",
  70. "format": "npm run format:es && npm run format:biome",
  71. "format:es": "npm run lint:es -- --fix",
  72. "format:biome": "biome check --fix .",
  73. "lint": "npm run lint:es && npm run lint:ts && npm run lint:biome",
  74. "lint:es": "eslint . --ignore-path .gitignore",
  75. "lint:biome": "biome check .",
  76. "lint:ts": "tsc --noEmit",
  77. "prepublishOnly": "tshy",
  78. "test": "npm run test:vi && npm run lint",
  79. "test:vi": "vitest run"
  80. },
  81. "devDependencies": {
  82. "@biomejs/biome": "^2.2.3",
  83. "@types/node": "^24.3.1",
  84. "@typescript-eslint/eslint-plugin": "^8.42.0",
  85. "@typescript-eslint/parser": "^8.33.1",
  86. "@vitest/coverage-v8": "^3.2.4",
  87. "eslint": "^8.57.1",
  88. "eslint-config-biome": "^2.1.3",
  89. "eslint-plugin-n": "^17.21.3",
  90. "eslint-plugin-unicorn": "^56.0.1",
  91. "tshy": "^3.0.2",
  92. "tsx": "^4.20.5",
  93. "typedoc": "^0.28.12",
  94. "typescript": "^5.9.2",
  95. "vitest": "^3.2.4"
  96. },
  97. "engines": {
  98. "node": ">=0.12"
  99. },
  100. "tshy": {
  101. "exclude": [
  102. "**/*.spec.ts",
  103. "**/__fixtures__/*",
  104. "**/__tests__/*",
  105. "**/__snapshots__/*"
  106. ],
  107. "exports": {
  108. ".": "./src/index.ts",
  109. "./decode": "./src/decode.ts",
  110. "./escape": "./src/escape.ts"
  111. }
  112. }
  113. }