package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {
  2. "author": "Keith McKnight <keith@mcknig.ht> (https://keith.mcknig.ht)",
  3. "bugs": "https://github.com/syntax-tree/hast-util-from-dom/issues",
  4. "contributors": [
  5. "Keith McKnight <keith@mcknig.ht> (https://keith.mcknig.ht)",
  6. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  7. ],
  8. "dependencies": {
  9. "@types/hast": "^3.0.0",
  10. "hastscript": "^9.0.0",
  11. "web-namespaces": "^2.0.0"
  12. },
  13. "description": "hast utility to create a tree from the DOM",
  14. "devDependencies": {
  15. "@types/jsdom": "^21.0.0",
  16. "@types/node": "^22.0.0",
  17. "c8": "^10.0.0",
  18. "jsdom": "^25.0.0",
  19. "prettier": "^3.0.0",
  20. "remark-cli": "^12.0.0",
  21. "remark-preset-wooorm": "^10.0.0",
  22. "type-coverage": "^2.0.0",
  23. "typescript": "^5.0.0",
  24. "xo": "^0.59.0"
  25. },
  26. "exports": "./index.js",
  27. "files": [
  28. "index.d.ts.map",
  29. "index.d.ts",
  30. "index.js",
  31. "lib/"
  32. ],
  33. "funding": {
  34. "type": "opencollective",
  35. "url": "https://opencollective.com/unified"
  36. },
  37. "keywords": [
  38. "dom",
  39. "hast-util",
  40. "hast",
  41. "html",
  42. "rehype",
  43. "unist",
  44. "utility",
  45. "util"
  46. ],
  47. "license": "ISC",
  48. "name": "hast-util-from-dom",
  49. "prettier": {
  50. "bracketSpacing": false,
  51. "semi": false,
  52. "singleQuote": true,
  53. "tabWidth": 2,
  54. "trailingComma": "none",
  55. "useTabs": false
  56. },
  57. "remarkConfig": {
  58. "plugins": [
  59. "remark-preset-wooorm"
  60. ]
  61. },
  62. "repository": "syntax-tree/hast-util-from-dom",
  63. "scripts": {
  64. "build": "tsc --build --clean && tsc --build && type-coverage",
  65. "format": "remark --frail --quiet --output -- . && prettier --log-level warn --write -- . && xo --fix",
  66. "test-api": "node --conditions development test/index.js",
  67. "test-coverage": "c8 --100 --reporter lcov -- npm run test-api",
  68. "test": "npm run build && npm run format && npm run test-coverage"
  69. },
  70. "sideEffects": false,
  71. "typeCoverage": {
  72. "atLeast": 100,
  73. "strict": true
  74. },
  75. "type": "module",
  76. "version": "5.0.1",
  77. "xo": {
  78. "overrides": [
  79. {
  80. "files": "test/**/*.js",
  81. "rules": {
  82. "no-await-in-loop": "off"
  83. }
  84. }
  85. ],
  86. "prettier": true
  87. }
  88. }