Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. {
  2. "name": "entities",
  3. "version": "5.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": "git://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. "source": "./src/index.ts",
  27. "types": "./dist/esm/index.d.ts",
  28. "default": "./dist/esm/index.js"
  29. },
  30. "require": {
  31. "source": "./src/index.ts",
  32. "types": "./dist/commonjs/index.d.ts",
  33. "default": "./dist/commonjs/index.js"
  34. }
  35. },
  36. "./dist/decode.js": {
  37. "import": {
  38. "source": "./src/decode.ts",
  39. "types": "./dist/esm/decode.d.ts",
  40. "default": "./dist/esm/decode.js"
  41. },
  42. "require": {
  43. "source": "./src/decode.ts",
  44. "types": "./dist/commonjs/decode.d.ts",
  45. "default": "./dist/commonjs/decode.js"
  46. }
  47. },
  48. "./dist/escape.js": {
  49. "import": {
  50. "source": "./src/escape.ts",
  51. "types": "./dist/esm/escape.d.ts",
  52. "default": "./dist/esm/escape.js"
  53. },
  54. "require": {
  55. "source": "./src/escape.ts",
  56. "types": "./dist/commonjs/escape.d.ts",
  57. "default": "./dist/commonjs/escape.js"
  58. }
  59. }
  60. },
  61. "main": "./dist/commonjs/index.js",
  62. "types": "./dist/commonjs/index.d.ts",
  63. "files": [
  64. "dist",
  65. "src"
  66. ],
  67. "scripts": {
  68. "build": "tshy",
  69. "build:docs": "typedoc --hideGenerator src/index.ts",
  70. "build:encode-trie": "node --import=tsx scripts/write-encode-map.ts",
  71. "build:trie": "node --import=tsx scripts/write-decode-map.ts",
  72. "format": "npm run format:es && npm run format:prettier",
  73. "format:es": "npm run lint:es -- --fix",
  74. "format:prettier": "npm run prettier -- --write",
  75. "lint": "npm run lint:es && npm run lint:ts && npm run lint:prettier",
  76. "lint:es": "eslint . --ignore-path .gitignore",
  77. "lint:prettier": "npm run prettier -- --check",
  78. "lint:ts": "tsc --noEmit",
  79. "prepare": "npm run build",
  80. "prettier": "prettier '**/*.{ts,md,json,yml}'",
  81. "test": "npm run test:vi && npm run lint",
  82. "test:vi": "vitest run"
  83. },
  84. "prettier": {
  85. "proseWrap": "always",
  86. "tabWidth": 4
  87. },
  88. "devDependencies": {
  89. "@types/node": "^20.14.8",
  90. "@typescript-eslint/eslint-plugin": "^7.14.1",
  91. "@typescript-eslint/parser": "^7.14.1",
  92. "@vitest/coverage-v8": "^1.6.0",
  93. "eslint": "^8.57.0",
  94. "eslint-config-prettier": "^9.1.0",
  95. "eslint-plugin-n": "^17.9.0",
  96. "eslint-plugin-unicorn": "^54.0.0",
  97. "prettier": "^3.3.2",
  98. "tshy": "^1.16.1",
  99. "tsx": "^4.15.7",
  100. "typedoc": "^0.26.2",
  101. "typescript": "^5.5.2",
  102. "vitest": "^1.6.0"
  103. },
  104. "engines": {
  105. "node": ">=0.12"
  106. },
  107. "tshy": {
  108. "exclude": [
  109. "**/*.spec.ts",
  110. "**/__fixtures__/*",
  111. "**/__tests__/*",
  112. "**/__snapshots__/*"
  113. ],
  114. "exports": {
  115. ".": "./src/index.ts",
  116. "./dist/decode.js": "./src/decode.ts",
  117. "./dist/escape.js": "./src/escape.ts"
  118. }
  119. }
  120. }