package.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "name": "htmlparser2",
  3. "version": "10.0.0",
  4. "description": "Fast & forgiving HTML/XML parser",
  5. "keywords": [
  6. "html",
  7. "parser",
  8. "streams",
  9. "xml",
  10. "dom",
  11. "rss",
  12. "feed",
  13. "atom"
  14. ],
  15. "repository": {
  16. "type": "git",
  17. "url": "git://github.com/fb55/htmlparser2.git"
  18. },
  19. "funding": [
  20. "https://github.com/fb55/htmlparser2?sponsor=1",
  21. {
  22. "type": "github",
  23. "url": "https://github.com/sponsors/fb55"
  24. }
  25. ],
  26. "license": "MIT",
  27. "author": "Felix Boehm <me@feedic.com>",
  28. "sideEffects": false,
  29. "type": "module",
  30. "exports": {
  31. ".": {
  32. "import": {
  33. "types": "./dist/esm/index.d.ts",
  34. "default": "./dist/esm/index.js"
  35. },
  36. "require": {
  37. "types": "./dist/commonjs/index.d.ts",
  38. "default": "./dist/commonjs/index.js"
  39. }
  40. },
  41. "./WritableStream": {
  42. "import": {
  43. "types": "./dist/esm/WritableStream.d.ts",
  44. "default": "./dist/esm/WritableStream.js"
  45. },
  46. "require": {
  47. "types": "./dist/commonjs/WritableStream.d.ts",
  48. "default": "./dist/commonjs/WritableStream.js"
  49. }
  50. }
  51. },
  52. "main": "./dist/commonjs/index.js",
  53. "module": "./dist/esm/index.js",
  54. "types": "./dist/commonjs/index.d.ts",
  55. "files": [
  56. "WritableStream.js",
  57. "dist",
  58. "src"
  59. ],
  60. "scripts": {
  61. "build": "tshy",
  62. "format": "npm run format:es && npm run format:prettier",
  63. "format:es": "npm run lint:es -- --fix",
  64. "format:prettier": "npm run format:prettier:raw -- --write",
  65. "format:prettier:raw": "prettier '**/*.{ts,md,json,yml}'",
  66. "lint": "npm run lint:es && npm run lint:ts && npm run lint:prettier",
  67. "lint:es": "eslint src",
  68. "lint:prettier": "npm run format:prettier:raw -- --check",
  69. "lint:ts": "tsc --noEmit",
  70. "prepare": "npm run build",
  71. "test": "npm run test:vi && npm run lint",
  72. "test:vi": "vitest run"
  73. },
  74. "prettier": {
  75. "tabWidth": 4
  76. },
  77. "dependencies": {
  78. "domelementtype": "^2.3.0",
  79. "domhandler": "^5.0.3",
  80. "domutils": "^3.2.1",
  81. "entities": "^6.0.0"
  82. },
  83. "devDependencies": {
  84. "@types/node": "^22.10.2",
  85. "@typescript-eslint/eslint-plugin": "^8.18.1",
  86. "@typescript-eslint/parser": "^8.18.1",
  87. "@vitest/coverage-v8": "^2.1.8",
  88. "eslint": "^8.57.1",
  89. "eslint-config-prettier": "^9.1.0",
  90. "eslint-plugin-n": "^17.15.1",
  91. "eslint-plugin-unicorn": "^56.0.1",
  92. "prettier": "^3.4.2",
  93. "tshy": "^3.0.2",
  94. "typescript": "^5.7.2",
  95. "vitest": "^2.0.2"
  96. },
  97. "tshy": {
  98. "exclude": [
  99. "**/*.spec.ts",
  100. "**/__fixtures__/*",
  101. "**/__tests__/*",
  102. "**/__snapshots__/*"
  103. ],
  104. "exports": {
  105. ".": "./src/index.ts",
  106. "./WritableStream": "./src/WritableStream.ts"
  107. }
  108. }
  109. }