package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "_args": [
  3. [
  4. "entities@4.5.0",
  5. "/usr/local/develop/php/www/waibao/NN2025081602/NN2025081602/addons/min-exam"
  6. ]
  7. ],
  8. "_from": "entities@4.5.0",
  9. "_id": "entities@4.5.0",
  10. "_inBundle": false,
  11. "_integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
  12. "_location": "/entities",
  13. "_phantomChildren": {},
  14. "_requested": {
  15. "type": "version",
  16. "registry": true,
  17. "raw": "entities@4.5.0",
  18. "name": "entities",
  19. "escapedName": "entities",
  20. "rawSpec": "4.5.0",
  21. "saveSpec": null,
  22. "fetchSpec": "4.5.0"
  23. },
  24. "_requiredBy": [
  25. "/",
  26. "/@vue/compiler-core"
  27. ],
  28. "_resolved": "https://registry.npmmirror.com/entities/-/entities-4.5.0.tgz",
  29. "_spec": "4.5.0",
  30. "_where": "/usr/local/develop/php/www/waibao/NN2025081602/NN2025081602/addons/min-exam",
  31. "author": {
  32. "name": "Felix Boehm",
  33. "email": "me@feedic.com"
  34. },
  35. "bugs": {
  36. "url": "https://github.com/fb55/entities/issues"
  37. },
  38. "description": "Encode & decode XML and HTML entities with ease & speed",
  39. "devDependencies": {
  40. "@types/jest": "^28.1.8",
  41. "@types/node": "^18.15.11",
  42. "@typescript-eslint/eslint-plugin": "^5.58.0",
  43. "@typescript-eslint/parser": "^5.58.0",
  44. "eslint": "^8.38.0",
  45. "eslint-config-prettier": "^8.8.0",
  46. "eslint-plugin-node": "^11.1.0",
  47. "jest": "^28.1.3",
  48. "prettier": "^2.8.7",
  49. "ts-jest": "^28.0.8",
  50. "typedoc": "^0.24.1",
  51. "typescript": "^5.0.4"
  52. },
  53. "directories": {
  54. "lib": "lib/"
  55. },
  56. "engines": {
  57. "node": ">=0.12"
  58. },
  59. "exports": {
  60. ".": {
  61. "require": "./lib/index.js",
  62. "import": "./lib/esm/index.js"
  63. },
  64. "./lib/decode.js": {
  65. "require": "./lib/decode.js",
  66. "import": "./lib/esm/decode.js"
  67. },
  68. "./lib/escape.js": {
  69. "require": "./lib/escape.js",
  70. "import": "./lib/esm/escape.js"
  71. }
  72. },
  73. "files": [
  74. "lib/**/*"
  75. ],
  76. "funding": "https://github.com/fb55/entities?sponsor=1",
  77. "homepage": "https://github.com/fb55/entities#readme",
  78. "jest": {
  79. "preset": "ts-jest",
  80. "coverageProvider": "v8",
  81. "moduleNameMapper": {
  82. "^(.*)\\.js$": "$1"
  83. }
  84. },
  85. "keywords": [
  86. "entity",
  87. "decoding",
  88. "encoding",
  89. "html",
  90. "xml",
  91. "html entities"
  92. ],
  93. "license": "BSD-2-Clause",
  94. "main": "lib/index.js",
  95. "module": "lib/esm/index.js",
  96. "name": "entities",
  97. "prettier": {
  98. "tabWidth": 4,
  99. "proseWrap": "always"
  100. },
  101. "repository": {
  102. "type": "git",
  103. "url": "git://github.com/fb55/entities.git"
  104. },
  105. "scripts": {
  106. "build": "npm run build:cjs && npm run build:esm",
  107. "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/fb55/entities/$(git rev-parse HEAD)/src/",
  108. "build:docs": "typedoc --hideGenerator src/index.ts",
  109. "build:encode-trie": "ts-node scripts/write-encode-map.ts",
  110. "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  111. "build:trie": "ts-node scripts/write-decode-map.ts",
  112. "format": "npm run format:es && npm run format:prettier",
  113. "format:es": "npm run lint:es -- --fix",
  114. "format:prettier": "npm run prettier -- --write",
  115. "lint": "npm run lint:es && npm run lint:prettier",
  116. "lint:es": "eslint .",
  117. "lint:prettier": "npm run prettier -- --check",
  118. "prepare": "npm run build",
  119. "prettier": "prettier '**/*.{ts,md,json,yml}'",
  120. "test": "npm run test:jest && npm run lint",
  121. "test:jest": "jest"
  122. },
  123. "sideEffects": false,
  124. "types": "lib/index.d.ts",
  125. "version": "4.5.0"
  126. }