package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. {
  2. "name": "cheerio",
  3. "version": "1.0.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. "types": "./dist/commonjs/index.d.ts",
  78. "files": [
  79. "dist",
  80. "src"
  81. ],
  82. "scripts": {
  83. "benchmark": "node --import=tsx benchmark/benchmark.ts",
  84. "build": "tshy",
  85. "format": "npm run format:es && npm run format:prettier",
  86. "format:es": "npm run lint:es -- --fix",
  87. "format:prettier": "npm run format:prettier:raw -- --write",
  88. "format:prettier:raw": "prettier \"**/*.{{m,c,}{j,t}s{x,},md{x,},json,y{a,}ml}\" --ignore-path .gitignore",
  89. "lint": "npm run lint:es && npm run lint:prettier && npm run lint:ts",
  90. "lint:es": "eslint --report-unused-disable-directives --ignore-path .gitignore .",
  91. "lint:prettier": "npm run format:prettier:raw -- --check",
  92. "lint:ts": "tsc --noEmit",
  93. "prepare": "husky",
  94. "prepublishOnly": "npm run build",
  95. "test": "npm run lint && npm run test:vi",
  96. "test:vi": "vitest run",
  97. "update-sponsors": "tsx scripts/fetch-sponsors.mts"
  98. },
  99. "lint-staged": {
  100. "*.js": [
  101. "prettier --write",
  102. "npm run lint:es -- --fix"
  103. ],
  104. "*.{json,md,ts,yml}": [
  105. "prettier --write"
  106. ]
  107. },
  108. "prettier": {
  109. "plugins": [
  110. "./node_modules/prettier-plugin-jsdoc/dist/index.js"
  111. ],
  112. "proseWrap": "always",
  113. "singleQuote": true,
  114. "tabWidth": 2,
  115. "tsdoc": true
  116. },
  117. "dependencies": {
  118. "cheerio-select": "^2.1.0",
  119. "dom-serializer": "^2.0.0",
  120. "domhandler": "^5.0.3",
  121. "domutils": "^3.1.0",
  122. "encoding-sniffer": "^0.2.0",
  123. "htmlparser2": "^9.1.0",
  124. "parse5": "^7.1.2",
  125. "parse5-htmlparser2-tree-adapter": "^7.0.0",
  126. "parse5-parser-stream": "^7.1.2",
  127. "undici": "^6.19.5",
  128. "whatwg-mimetype": "^4.0.0"
  129. },
  130. "devDependencies": {
  131. "@imgix/js-core": "^3.8.0",
  132. "@octokit/graphql": "^8.1.1",
  133. "@types/jsdom": "^21.1.7",
  134. "@types/node": "^22.1.0",
  135. "@types/whatwg-mimetype": "^3.0.2",
  136. "@typescript-eslint/eslint-plugin": "^8.0.1",
  137. "@typescript-eslint/parser": "^8.0.1",
  138. "@vitest/coverage-v8": "^2.0.5",
  139. "eslint": "^8.57.0",
  140. "eslint-config-prettier": "^9.1.0",
  141. "eslint-plugin-expect-type": "^0.4.0",
  142. "eslint-plugin-jsdoc": "^50.0.0",
  143. "eslint-plugin-n": "^16.6.2",
  144. "eslint-plugin-unicorn": "^55.0.0",
  145. "eslint-plugin-vitest": "^0.5.4",
  146. "husky": "^9.1.4",
  147. "jquery": "^3.7.1",
  148. "jsdom": "^24.1.1",
  149. "lint-staged": "^15.2.8",
  150. "prettier": "^3.3.3",
  151. "prettier-plugin-jsdoc": "^1.3.0",
  152. "tinybench": "^2.9.0",
  153. "tshy": "^3.0.2",
  154. "tsx": "^4.17.0",
  155. "typescript": "^5.5.4",
  156. "vitest": "^2.0.5"
  157. },
  158. "engines": {
  159. "node": ">=18.17"
  160. },
  161. "tshy": {
  162. "esmDialects": [
  163. "browser"
  164. ],
  165. "exports": {
  166. ".": "./src/index.ts",
  167. "./slim": "./src/slim.ts",
  168. "./utils": "./src/utils.ts",
  169. "./package.json": "./package.json"
  170. },
  171. "exclude": [
  172. "**/*.spec.ts",
  173. "**/__fixtures__/*",
  174. "**/__tests__/*",
  175. "**/__snapshots__/*"
  176. ]
  177. }
  178. }