package.json 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. "name": "hast-util-to-text",
  3. "version": "4.0.2",
  4. "description": "hast utility to get the plain-text value of a node according to the `innerText` algorithm",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "hast",
  9. "hast-util",
  10. "util",
  11. "utility",
  12. "html",
  13. "string",
  14. "content",
  15. "text",
  16. "innertext"
  17. ],
  18. "repository": "syntax-tree/hast-util-to-text",
  19. "bugs": "https://github.com/syntax-tree/hast-util-to-text/issues",
  20. "funding": {
  21. "type": "opencollective",
  22. "url": "https://opencollective.com/unified"
  23. },
  24. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  25. "contributors": [
  26. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
  27. ],
  28. "sideEffects": false,
  29. "type": "module",
  30. "exports": "./index.js",
  31. "files": [
  32. "lib/",
  33. "index.d.ts",
  34. "index.js"
  35. ],
  36. "dependencies": {
  37. "@types/hast": "^3.0.0",
  38. "@types/unist": "^3.0.0",
  39. "hast-util-is-element": "^3.0.0",
  40. "unist-util-find-after": "^5.0.0"
  41. },
  42. "devDependencies": {
  43. "@types/node": "^20.0.0",
  44. "c8": "^9.0.0",
  45. "hastscript": "^9.0.0",
  46. "prettier": "^3.0.0",
  47. "remark-cli": "^12.0.0",
  48. "remark-preset-wooorm": "^10.0.0",
  49. "type-coverage": "^2.0.0",
  50. "typescript": "^5.0.0",
  51. "xo": "^0.58.0"
  52. },
  53. "scripts": {
  54. "prepack": "npm run build && npm run format",
  55. "build": "tsc --build --clean && tsc --build && type-coverage",
  56. "format": "remark . -qfo && prettier . -w --log-level warn && xo --fix",
  57. "test-api": "node --conditions development test.js",
  58. "test-coverage": "c8 --100 --reporter lcov npm run test-api",
  59. "test": "npm run build && npm run format && npm run test-coverage"
  60. },
  61. "prettier": {
  62. "bracketSpacing": false,
  63. "semi": false,
  64. "singleQuote": true,
  65. "tabWidth": 2,
  66. "trailingComma": "none",
  67. "useTabs": false
  68. },
  69. "remarkConfig": {
  70. "plugins": [
  71. "remark-preset-wooorm"
  72. ]
  73. },
  74. "typeCoverage": {
  75. "atLeast": 100,
  76. "detail": true,
  77. "ignoreCatch": true,
  78. "strict": true
  79. },
  80. "xo": {
  81. "prettier": true,
  82. "rules": {
  83. "unicorn/prefer-code-point": "off",
  84. "unicorn/prefer-string-replace-all": "off"
  85. }
  86. }
  87. }