package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. {
  2. "name": "cheerio",
  3. "version": "1.1.0",
  4. "description": "The fast, flexible & elegant library for parsing and manipulating HTML and XML.",
  5. "keywords": [
  6. "htmlparser",
  7. "jquery",
  8. "selector",
  9. "scraper",
  10. "parser",
  11. "dom",
  12. "xml",
  13. "html"
  14. ],
  15. "homepage": "https://cheerio.js.org/",
  16. "bugs": {
  17. "url": "https://github.com/cheeriojs/cheerio/issues"
  18. },
  19. "repository": {
  20. "type": "git",
  21. "url": "git://github.com/cheeriojs/cheerio.git"
  22. },
  23. "funding": "https://github.com/cheeriojs/cheerio?sponsor=1",
  24. "license": "MIT",
  25. "author": "Matt Mueller <mattmuelle@gmail.com>",
  26. "maintainers": [
  27. "Felix Boehm <me@feedic.com>"
  28. ],
  29. "type": "module",
  30. "exports": {
  31. ".": {
  32. "browser": {
  33. "types": "./dist/browser/index.d.ts",
  34. "default": "./dist/browser/index.js"
  35. },
  36. "import": {
  37. "types": "./dist/esm/index.d.ts",
  38. "default": "./dist/esm/index.js"
  39. },
  40. "require": {
  41. "types": "./dist/commonjs/index.d.ts",
  42. "default": "./dist/commonjs/index.js"
  43. }
  44. },
  45. "./slim": {
  46. "browser": {
  47. "types": "./dist/browser/slim.d.ts",
  48. "default": "./dist/browser/slim.js"
  49. },
  50. "import": {
  51. "types": "./dist/esm/slim.d.ts",
  52. "default": "./dist/esm/slim.js"
  53. },
  54. "require": {
  55. "types": "./dist/commonjs/slim.d.ts",
  56. "default": "./dist/commonjs/slim.js"
  57. }
  58. },
  59. "./utils": {
  60. "browser": {
  61. "types": "./dist/browser/utils.d.ts",
  62. "default": "./dist/browser/utils.js"
  63. },
  64. "import": {
  65. "types": "./dist/esm/utils.d.ts",
  66. "default": "./dist/esm/utils.js"
  67. },
  68. "require": {
  69. "types": "./dist/commonjs/utils.d.ts",
  70. "default": "./dist/commonjs/utils.js"
  71. }
  72. },
  73. "./package.json": "./package.json"
  74. },
  75. "main": "./dist/commonjs/index.js",
  76. "module": "./dist/esm/index.js",
  77. "browser": "./dist/browser/index.js",
  78. "types": "./dist/commonjs/index.d.ts",
  79. "files": [
  80. "dist",
  81. "src"
  82. ],
  83. "scripts": {
  84. "benchmark": "node --import=tsx benchmark/benchmark.ts",
  85. "build": "tshy",
  86. "format": "npm run format:es && npm run format:prettier",
  87. "format:es": "eslint . --fix",
  88. "format:prettier": "npm run format:prettier:raw -- --write",
  89. "format:prettier:raw": "prettier \"**/*.{{m,c,}{j,t}s{x,},md{x,},json,y{a,}ml}\" --ignore-path .gitignore",
  90. "lint": "npm run lint:es && npm run lint:prettier && npm run lint:ts",
  91. "lint:es": "eslint .",
  92. "lint:prettier": "npm run format:prettier:raw -- --check",
  93. "lint:ts": "tsc --noEmit",
  94. "prepare": "husky",
  95. "prepublishOnly": "npm run build",
  96. "test": "npm run lint && npm run test:vi",
  97. "test:vi": "vitest run",
  98. "update-sponsors": "tsx scripts/fetch-sponsors.mts"
  99. },
  100. "lint-staged": {
  101. "*.js": [
  102. "prettier --write",
  103. "eslint --fix"
  104. ],
  105. "*.{json,md,ts,yml}": [
  106. "prettier --write"
  107. ]
  108. },
  109. "prettier": {
  110. "plugins": [
  111. "./node_modules/prettier-plugin-jsdoc/dist/index.js"
  112. ],
  113. "proseWrap": "always",
  114. "singleQuote": true,
  115. "tabWidth": 2,
  116. "tsdoc": true
  117. },
  118. "dependencies": {
  119. "cheerio-select": "^2.1.0",
  120. "dom-serializer": "^2.0.0",
  121. "domhandler": "^5.0.3",
  122. "domutils": "^3.2.2",
  123. "encoding-sniffer": "^0.2.0",
  124. "htmlparser2": "^10.0.0",
  125. "parse5": "^7.3.0",
  126. "parse5-htmlparser2-tree-adapter": "^7.1.0",
  127. "parse5-parser-stream": "^7.1.2",
  128. "undici": "^7.10.0",
  129. "whatwg-mimetype": "^4.0.0"
  130. },
  131. "devDependencies": {
  132. "@eslint/compat": "^1.2.9",
  133. "@eslint/js": "^9.28.0",
  134. "@imgix/js-core": "^3.8.0",
  135. "@octokit/graphql": "^9.0.1",
  136. "@types/jsdom": "^21.1.7",
  137. "@types/node": "^22.15.30",
  138. "@types/whatwg-mimetype": "^3.0.2",
  139. "@vitest/coverage-v8": "^3.2.2",
  140. "@vitest/eslint-plugin": "^1.2.1",
  141. "eslint": "^9.28.0",
  142. "eslint-config-prettier": "^10.1.5",
  143. "eslint-plugin-jsdoc": "^50.7.1",
  144. "eslint-plugin-n": "^17.19.0",
  145. "eslint-plugin-unicorn": "^59.0.1",
  146. "globals": "^16.2.0",
  147. "husky": "^9.1.7",
  148. "jquery": "^3.7.1",
  149. "jsdom": "^26.1.0",
  150. "lint-staged": "^16.1.0",
  151. "prettier": "^3.5.3",
  152. "prettier-plugin-jsdoc": "^1.3.2",
  153. "tinybench": "^4.0.1",
  154. "tshy": "^3.0.2",
  155. "tsx": "^4.19.4",
  156. "typescript": "^5.8.3",
  157. "typescript-eslint": "^8.33.1",
  158. "vitest": "^3.1.4"
  159. },
  160. "engines": {
  161. "node": ">=18.17"
  162. },
  163. "tshy": {
  164. "esmDialects": [
  165. "browser"
  166. ],
  167. "exports": {
  168. ".": "./src/index.ts",
  169. "./slim": "./src/slim.ts",
  170. "./utils": "./src/utils.ts",
  171. "./package.json": "./package.json"
  172. },
  173. "exclude": [
  174. "**/*.spec.ts",
  175. "**/__fixtures__/*",
  176. "**/__tests__/*",
  177. "**/__snapshots__/*"
  178. ]
  179. }
  180. }