package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. {
  2. "name": "hast-util-from-html-isomorphic",
  3. "version": "2.0.0",
  4. "description": "hast utility that turns HTML into a syntax tree (while being small in browsers)",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "hast",
  9. "hast-util",
  10. "util",
  11. "utility",
  12. "html",
  13. "parse",
  14. "dom"
  15. ],
  16. "repository": "syntax-tree/hast-util-from-html-isomorphic",
  17. "bugs": "https://github.com/syntax-tree/hast-util-from-html-isomorphic/issues",
  18. "funding": {
  19. "type": "opencollective",
  20. "url": "https://opencollective.com/unified"
  21. },
  22. "author": "Remco Haszing <remcohaszing@gmail.com>",
  23. "contributors": [
  24. "Remco Haszing <remcohaszing@gmail.com>"
  25. ],
  26. "sideEffects": false,
  27. "type": "module",
  28. "exports": {
  29. ".": {
  30. "deno": "./index.js",
  31. "react-native": "./index.js",
  32. "worker": "./index.js",
  33. "browser": "./lib/browser.js",
  34. "default": "./index.js"
  35. }
  36. },
  37. "files": [
  38. "lib/",
  39. "index.d.ts",
  40. "index.js"
  41. ],
  42. "dependencies": {
  43. "@types/hast": "^3.0.0",
  44. "hast-util-from-html": "^2.0.0",
  45. "hast-util-from-dom": "^5.0.0",
  46. "unist-util-remove-position": "^5.0.0"
  47. },
  48. "devDependencies": {
  49. "@types/jsdom": "^21.0.0",
  50. "@types/node": "^20.0.0",
  51. "c8": "^8.0.0",
  52. "jsdom": "^22.0.0",
  53. "prettier": "^3.0.0",
  54. "remark-cli": "^11.0.0",
  55. "remark-preset-wooorm": "^9.0.0",
  56. "type-coverage": "^2.0.0",
  57. "typescript": "^5.0.0",
  58. "xo": "^0.55.0"
  59. },
  60. "scripts": {
  61. "prepack": "npm run build && npm run format",
  62. "build": "tsc --build --clean && tsc --build && type-coverage",
  63. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  64. "test-browser": "node --conditions development --conditions browser -r ./test/dom.cjs test/index.js",
  65. "test-node": "node --conditions development test/index.js",
  66. "test-worker": "node --conditions development --conditions worker test/index.js",
  67. "test-api": "npm run test-browser && npm run test-node && npm run test-worker",
  68. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  69. "test": "npm run build && npm run format && npm run test-coverage"
  70. },
  71. "prettier": {
  72. "bracketSpacing": false,
  73. "semi": false,
  74. "singleQuote": true,
  75. "tabWidth": 2,
  76. "trailingComma": "none",
  77. "useTabs": false
  78. },
  79. "remarkConfig": {
  80. "plugins": [
  81. "remark-preset-wooorm",
  82. [
  83. "remark-lint-no-html",
  84. false
  85. ]
  86. ]
  87. },
  88. "typeCoverage": {
  89. "atLeast": 100,
  90. "detail": true,
  91. "ignoreCatch": true,
  92. "strict": true
  93. },
  94. "xo": {
  95. "env": [
  96. "browser"
  97. ],
  98. "prettier": true
  99. }
  100. }