package.json 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. {
  2. "name": "cheerio",
  3. "version": "1.0.0-rc.12",
  4. "description": "Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",
  5. "author": "Matt Mueller <mattmuelle@gmail.com>",
  6. "maintainers": [
  7. "Felix Boehm <me@feedic.com>"
  8. ],
  9. "funding": "https://github.com/cheeriojs/cheerio?sponsor=1",
  10. "license": "MIT",
  11. "keywords": [
  12. "htmlparser",
  13. "jquery",
  14. "selector",
  15. "scraper",
  16. "parser",
  17. "html"
  18. ],
  19. "repository": {
  20. "type": "git",
  21. "url": "git://github.com/cheeriojs/cheerio.git"
  22. },
  23. "bugs": {
  24. "url": "https://github.com/cheeriojs/cheerio/issues"
  25. },
  26. "homepage": "https://cheerio.js.org/",
  27. "main": "lib/index.js",
  28. "types": "lib/index.d.ts",
  29. "module": "lib/esm/index.js",
  30. "exports": {
  31. ".": {
  32. "require": "./lib/index.js",
  33. "import": "./lib/esm/index.js"
  34. },
  35. "./lib/slim": {
  36. "require": "./lib/slim.js",
  37. "import": "./lib/esm/slim.js"
  38. },
  39. "./lib/utils": {
  40. "require": "./lib/utils.js",
  41. "import": "./lib/esm/utils.js"
  42. }
  43. },
  44. "files": [
  45. "lib"
  46. ],
  47. "engines": {
  48. "node": ">= 6"
  49. },
  50. "dependencies": {
  51. "cheerio-select": "^2.1.0",
  52. "dom-serializer": "^2.0.0",
  53. "domhandler": "^5.0.3",
  54. "domutils": "^3.0.1",
  55. "htmlparser2": "^8.0.1",
  56. "parse5": "^7.0.0",
  57. "parse5-htmlparser2-tree-adapter": "^7.0.0"
  58. },
  59. "devDependencies": {
  60. "@octokit/graphql": "^4.8.0",
  61. "@types/benchmark": "^2.1.1",
  62. "@types/jest": "^28.1.3",
  63. "@types/node": "^18.0.0",
  64. "@typescript-eslint/eslint-plugin": "^5.29.0",
  65. "@typescript-eslint/parser": "^5.29.0",
  66. "benchmark": "^2.1.4",
  67. "eslint": "^8.18.0",
  68. "eslint-config-prettier": "^8.5.0",
  69. "eslint-plugin-jest": "^26.5.3",
  70. "eslint-plugin-jsdoc": "^39.3.3",
  71. "eslint-plugin-node": "^11.1.0",
  72. "husky": "^8.0.1",
  73. "jest": "^28.1.1",
  74. "jquery": "^3.6.0",
  75. "jsdom": "^20.0.0",
  76. "lint-staged": "^13.0.2",
  77. "prettier": "^2.7.1",
  78. "prettier-plugin-jsdoc": "0.3.38",
  79. "ts-jest": "^28.0.5",
  80. "ts-node": "^10.8.1",
  81. "typedoc": "^0.22.17",
  82. "typescript": "^4.7.4",
  83. "undici": "^5.5.1"
  84. },
  85. "scripts": {
  86. "test": "npm run lint && npm run test:jest",
  87. "test:jest": "jest",
  88. "test:jest:cov": "npm run test:jest -- --coverage",
  89. "lint": "npm run lint:es && npm run lint:prettier",
  90. "lint:es": "eslint --ignore-path .gitignore .",
  91. "lint:prettier": "npm run format:prettier:raw -- --check",
  92. "format": "npm run format:es && npm run format:prettier",
  93. "format:es": "npm run lint:es -- --fix",
  94. "format:prettier": "npm run format:prettier:raw -- --write",
  95. "format:prettier:raw": "prettier \"**/*.{{m,c,}js,ts,md,json,yml}\" --ignore-path .gitignore",
  96. "build:docs": "typedoc --hideGenerator src/index.ts",
  97. "benchmark": "npm run build:cjs && ts-node benchmark/benchmark.ts --regex \"^(?!.*highmem)\"",
  98. "update-sponsors": "ts-node scripts/fetch-sponsors.ts",
  99. "bench": "npm run benchmark",
  100. "build": "npm run build:cjs && npm run build:esm",
  101. "build:cjs": "tsc --sourceRoot https://raw.githubusercontent.com/cheeriojs/cheerio/$(git rev-parse HEAD)/src/",
  102. "build:esm": "npm run build:cjs -- --module esnext --target es2019 --outDir lib/esm && echo '{\"type\":\"module\"}' > lib/esm/package.json",
  103. "prepublishOnly": "npm run build",
  104. "prepare": "husky install"
  105. },
  106. "prettier": {
  107. "singleQuote": true,
  108. "tabWidth": 2,
  109. "tsdoc": true
  110. },
  111. "lint-staged": {
  112. "*.js": [
  113. "prettier --write",
  114. "npm run test:lint -- --fix"
  115. ],
  116. "*.{json,md,ts,yml}": [
  117. "prettier --write"
  118. ]
  119. },
  120. "jest": {
  121. "preset": "ts-jest",
  122. "testEnvironment": "node",
  123. "testPathIgnorePatterns": [
  124. "/__fixtures__/"
  125. ],
  126. "coverageProvider": "v8",
  127. "moduleNameMapper": {
  128. "^(.*)\\.js$": [
  129. "$1.js",
  130. "$1"
  131. ]
  132. }
  133. }
  134. }