package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "name": "remark-slug",
  3. "version": "6.1.0",
  4. "description": "remark plugin to add anchors to headings",
  5. "license": "MIT",
  6. "keywords": [
  7. "unified",
  8. "remark",
  9. "remark-plugin",
  10. "plugin",
  11. "mdast",
  12. "markdown",
  13. "text",
  14. "slug",
  15. "id",
  16. "github",
  17. "npm"
  18. ],
  19. "repository": "remarkjs/remark-slug",
  20. "bugs": "https://github.com/remarkjs/remark-slug/issues",
  21. "funding": {
  22. "type": "opencollective",
  23. "url": "https://opencollective.com/unified"
  24. },
  25. "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  26. "contributors": [
  27. "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
  28. "Jayson Harshbarger <hypercubed@gmail.com>"
  29. ],
  30. "files": [
  31. "index.js",
  32. "types/index.d.ts"
  33. ],
  34. "types": "types/index.d.ts",
  35. "dependencies": {
  36. "github-slugger": "^1.0.0",
  37. "mdast-util-to-string": "^1.0.0",
  38. "unist-util-visit": "^2.0.0"
  39. },
  40. "devDependencies": {
  41. "browserify": "^17.0.0",
  42. "dtslint": "^4.0.0",
  43. "nyc": "^15.0.0",
  44. "prettier": "^2.0.0",
  45. "remark": "^13.0.0",
  46. "remark-cli": "^9.0.0",
  47. "remark-preset-wooorm": "^8.0.0",
  48. "tape": "^5.0.0",
  49. "tinyify": "^3.0.0",
  50. "unist-builder": "^2.0.0",
  51. "unist-util-remove-position": "^3.0.0",
  52. "xo": "^0.37.0"
  53. },
  54. "scripts": {
  55. "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
  56. "build-bundle": "browserify . -s remarkSlug > remark-slug.js",
  57. "build-mangle": "browserify . -s remarkSlug -p tinyify > remark-slug.min.js",
  58. "build": "npm run build-bundle && npm run build-mangle",
  59. "test-api": "node test",
  60. "test-coverage": "nyc --reporter lcov tape test.js",
  61. "test-types": "dtslint types",
  62. "test": "npm run format && npm run build && npm run test-coverage && npm run test-types"
  63. },
  64. "prettier": {
  65. "tabWidth": 2,
  66. "useTabs": false,
  67. "singleQuote": true,
  68. "bracketSpacing": false,
  69. "semi": false,
  70. "trailingComma": "none"
  71. },
  72. "xo": {
  73. "prettier": true,
  74. "esnext": false,
  75. "ignores": [
  76. "remark-slug.js",
  77. "types/index.d.ts"
  78. ]
  79. },
  80. "remarkConfig": {
  81. "plugins": [
  82. "preset-wooorm"
  83. ]
  84. }
  85. }