package.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. {
  2. "_from": "entities@^7.0.1",
  3. "_id": "entities@7.0.1",
  4. "_inBundle": false,
  5. "_integrity": "sha512-TWrgLOFUQTH994YUyl1yT4uyavY5nNB5muff+RtWaqNVCAK408b5ZnnbNAUEWLTCpum9w6arT70i1XdQ4UeOPA==",
  6. "_location": "/entities",
  7. "_phantomChildren": {},
  8. "_requested": {
  9. "type": "range",
  10. "registry": true,
  11. "raw": "entities@^7.0.1",
  12. "name": "entities",
  13. "escapedName": "entities",
  14. "rawSpec": "^7.0.1",
  15. "saveSpec": null,
  16. "fetchSpec": "^7.0.1"
  17. },
  18. "_requiredBy": [
  19. "/@vue/compiler-core"
  20. ],
  21. "_resolved": "https://registry.npmmirror.com/entities/-/entities-7.0.1.tgz",
  22. "_shasum": "26e8a88889db63417dcb9a1e79a3f1bc92b5976b",
  23. "_spec": "entities@^7.0.1",
  24. "_where": "E:\\git\\2021项目\\安科院大屏\\node_modules\\@vue\\compiler-core",
  25. "author": {
  26. "name": "Felix Boehm",
  27. "email": "me@feedic.com"
  28. },
  29. "bugs": {
  30. "url": "https://github.com/fb55/entities/issues"
  31. },
  32. "bundleDependencies": false,
  33. "deprecated": false,
  34. "description": "Encode & decode XML and HTML entities with ease & speed",
  35. "devDependencies": {
  36. "@biomejs/biome": "^2.3.11",
  37. "@types/he": "^1.2.3",
  38. "@types/node": "^25.0.9",
  39. "@typescript-eslint/eslint-plugin": "^8.53.1",
  40. "@typescript-eslint/parser": "^8.53.1",
  41. "@vitest/coverage-v8": "^3.2.4",
  42. "eslint": "^8.57.1",
  43. "eslint-config-biome": "^2.1.3",
  44. "eslint-plugin-n": "^17.23.2",
  45. "eslint-plugin-unicorn": "^56.0.1",
  46. "he": "^1.2.0",
  47. "html-entities": "^2.6.0",
  48. "parse-entities": "^4.0.2",
  49. "tinybench": "^5.1.0",
  50. "tshy": "^3.1.0",
  51. "tsx": "^4.21.0",
  52. "typedoc": "^0.28.16",
  53. "typescript": "^5.9.3",
  54. "vitest": "^3.2.4"
  55. },
  56. "engines": {
  57. "node": ">=0.12"
  58. },
  59. "exports": {
  60. ".": {
  61. "import": {
  62. "types": "./dist/esm/index.d.ts",
  63. "default": "./dist/esm/index.js"
  64. },
  65. "require": {
  66. "types": "./dist/commonjs/index.d.ts",
  67. "default": "./dist/commonjs/index.js"
  68. }
  69. },
  70. "./decode": {
  71. "import": {
  72. "types": "./dist/esm/decode.d.ts",
  73. "default": "./dist/esm/decode.js"
  74. },
  75. "require": {
  76. "types": "./dist/commonjs/decode.d.ts",
  77. "default": "./dist/commonjs/decode.js"
  78. }
  79. },
  80. "./escape": {
  81. "import": {
  82. "types": "./dist/esm/escape.d.ts",
  83. "default": "./dist/esm/escape.js"
  84. },
  85. "require": {
  86. "types": "./dist/commonjs/escape.d.ts",
  87. "default": "./dist/commonjs/escape.js"
  88. }
  89. }
  90. },
  91. "files": [
  92. "decode.js",
  93. "decode.d.ts",
  94. "escape.js",
  95. "escape.d.ts",
  96. "dist",
  97. "src",
  98. "!**/*.spec.ts"
  99. ],
  100. "funding": "https://github.com/fb55/entities?sponsor=1",
  101. "homepage": "https://github.com/fb55/entities#readme",
  102. "keywords": [
  103. "html entities",
  104. "entity decoder",
  105. "entity encoding",
  106. "html decoding",
  107. "html encoding",
  108. "xml decoding",
  109. "xml encoding"
  110. ],
  111. "license": "BSD-2-Clause",
  112. "main": "./dist/commonjs/index.js",
  113. "module": "./dist/esm/index.js",
  114. "name": "entities",
  115. "repository": {
  116. "type": "git",
  117. "url": "git+https://github.com/fb55/entities.git"
  118. },
  119. "scripts": {
  120. "benchmark": "node --import=tsx scripts/benchmark.ts",
  121. "build:docs": "typedoc --hideGenerator src/index.ts",
  122. "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
  123. "build:trie": "node --import=tsx scripts/write-decode-map.ts",
  124. "format": "npm run format:es && npm run format:biome",
  125. "format:biome": "biome check --fix .",
  126. "format:es": "npm run lint:es -- --fix",
  127. "lint": "npm run lint:es && npm run lint:ts && npm run lint:biome",
  128. "lint:biome": "biome check .",
  129. "lint:es": "eslint . --ignore-path .gitignore",
  130. "lint:ts": "tsc --noEmit",
  131. "prepublishOnly": "tshy",
  132. "test": "npm run test:vi && npm run lint",
  133. "test:vi": "vitest run"
  134. },
  135. "sideEffects": false,
  136. "tshy": {
  137. "exclude": [
  138. "**/*.spec.ts",
  139. "**/__fixtures__/*",
  140. "**/__tests__/*",
  141. "**/__snapshots__/*"
  142. ],
  143. "exports": {
  144. ".": "./src/index.ts",
  145. "./decode": "./src/decode.ts",
  146. "./escape": "./src/escape.ts"
  147. }
  148. },
  149. "type": "module",
  150. "types": "./dist/commonjs/index.d.ts",
  151. "version": "7.0.1"
  152. }