package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "name": "unist-util-visit",
  3. "version": "2.0.3",
  4. "description": "unist utility to visit nodes",
  5. "license": "MIT",
  6. "keywords": [
  7. "unist",
  8. "unist-util",
  9. "util",
  10. "utility",
  11. "remark",
  12. "retext",
  13. "rehype",
  14. "mdast",
  15. "hast",
  16. "xast",
  17. "nlcst",
  18. "natural",
  19. "language",
  20. "markdown",
  21. "html",
  22. "xml",
  23. "tree",
  24. "ast",
  25. "node",
  26. "visit",
  27. "walk"
  28. ],
  29. "repository": "syntax-tree/unist-util-visit",
  30. "bugs": "https://github.com/syntax-tree/unist-util-visit/issues",
  31. "funding": {
  32. "type": "opencollective",
  33. "url": "https://opencollective.com/unified"
  34. },
  35. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  36. "contributors": [
  37. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  38. "Eugene Sharygin <eush77@gmail.com>",
  39. "Richard Gibson <richard.gibson@gmail.com>"
  40. ],
  41. "files": [
  42. "index.js",
  43. "types/index.d.ts"
  44. ],
  45. "types": "types/index.d.ts",
  46. "dependencies": {
  47. "@types/unist": "^2.0.0",
  48. "unist-util-is": "^4.0.0",
  49. "unist-util-visit-parents": "^3.0.0"
  50. },
  51. "devDependencies": {
  52. "browserify": "^16.0.0",
  53. "dtslint": "^3.0.0",
  54. "nyc": "^15.0.0",
  55. "prettier": "^2.0.0",
  56. "remark": "^12.0.0",
  57. "remark-cli": "^8.0.0",
  58. "remark-preset-wooorm": "^7.0.0",
  59. "tape": "^5.0.0",
  60. "tinyify": "^2.0.0",
  61. "typescript": "^3.0.0",
  62. "unified": "^9.0.0",
  63. "xo": "^0.32.0"
  64. },
  65. "scripts": {
  66. "format": "remark . -qfo && prettier . --write && xo --fix",
  67. "build-bundle": "browserify . -s unistUtilVisit > unist-util-visit.js",
  68. "build-mangle": "browserify . -s unistUtilVisit -p tinyify > unist-util-visit.min.js",
  69. "build": "npm run build-bundle && npm run build-mangle",
  70. "test-api": "node test",
  71. "test-coverage": "nyc --reporter lcov tape test.js",
  72. "test-types": "dtslint types",
  73. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  74. },
  75. "nyc": {
  76. "check-coverage": true,
  77. "lines": 100,
  78. "functions": 100,
  79. "branches": 100
  80. },
  81. "prettier": {
  82. "tabWidth": 2,
  83. "useTabs": false,
  84. "singleQuote": true,
  85. "bracketSpacing": false,
  86. "semi": false,
  87. "trailingComma": "none"
  88. },
  89. "xo": {
  90. "prettier": true,
  91. "esnext": false,
  92. "rules": {
  93. "unicorn/prefer-set-has": "off"
  94. },
  95. "ignores": [
  96. "unist-util-visit.js",
  97. "types"
  98. ]
  99. },
  100. "remarkConfig": {
  101. "plugins": [
  102. "preset-wooorm"
  103. ]
  104. }
  105. }