package.json 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "name": "parse-entities",
  3. "version": "4.0.2",
  4. "description": "Parse HTML character references",
  5. "license": "MIT",
  6. "keywords": [
  7. "parse",
  8. "html",
  9. "character",
  10. "reference",
  11. "entity",
  12. "entities"
  13. ],
  14. "repository": "wooorm/parse-entities",
  15. "bugs": "https://github.com/wooorm/parse-entities/issues",
  16. "funding": {
  17. "type": "github",
  18. "url": "https://github.com/sponsors/wooorm"
  19. },
  20. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  21. "contributors": [
  22. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  23. ],
  24. "sideEffects": false,
  25. "type": "module",
  26. "main": "index.js",
  27. "types": "index.d.ts",
  28. "files": [
  29. "lib/",
  30. "index.d.ts",
  31. "index.js"
  32. ],
  33. "dependencies": {
  34. "@types/unist": "^2.0.0",
  35. "character-entities-legacy": "^3.0.0",
  36. "character-reference-invalid": "^2.0.0",
  37. "decode-named-character-reference": "^1.0.0",
  38. "is-alphanumerical": "^2.0.0",
  39. "is-decimal": "^2.0.0",
  40. "is-hexadecimal": "^2.0.0"
  41. },
  42. "devDependencies": {
  43. "@types/node": "^22.0.0",
  44. "c8": "^10.0.0",
  45. "prettier": "^3.0.0",
  46. "remark-cli": "^12.0.0",
  47. "remark-preset-wooorm": "^10.0.0",
  48. "type-coverage": "^2.0.0",
  49. "typescript": "^5.0.0",
  50. "xo": "^0.60.0"
  51. },
  52. "scripts": {
  53. "prepack": "npm run build && npm run format",
  54. "build": "tsc --build --clean && tsc --build && type-coverage",
  55. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  56. "test-api": "node --conditions development test.js",
  57. "test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
  58. "test": "npm run build && npm run format && npm run test-coverage"
  59. },
  60. "prettier": {
  61. "tabWidth": 2,
  62. "useTabs": false,
  63. "singleQuote": true,
  64. "bracketSpacing": false,
  65. "semi": false,
  66. "trailingComma": "none"
  67. },
  68. "xo": {
  69. "prettier": true,
  70. "rules": {
  71. "@typescript-eslint/consistent-type-definitions": "off",
  72. "@typescript-eslint/ban-types": "off",
  73. "complexity": "off",
  74. "max-depth": "off",
  75. "no-bitwise": "off",
  76. "unicorn/numeric-separators-style": "off",
  77. "unicorn/prefer-code-point": "off"
  78. }
  79. },
  80. "remarkConfig": {
  81. "plugins": [
  82. "remark-preset-wooorm"
  83. ]
  84. },
  85. "typeCoverage": {
  86. "atLeast": 100,
  87. "detail": true,
  88. "strict": true,
  89. "ignoreCatch": true
  90. }
  91. }