remark-flexible-toc
Version:
Remark plugin to expose the table of contents via Vfile.data or via an option reference
93 lines (92 loc) • 2.49 kB
JSON
{
"name": "remark-flexible-toc",
"version": "1.2.0",
"description": "Remark plugin to expose the table of contents via Vfile.data or via an option reference",
"type": "module",
"exports": "./dist/esm/index.js",
"main": "./dist/esm/index.js",
"types": "./dist/esm/index.d.ts",
"scripts": {
"build": "rimraf dist && tsc --build && type-coverage",
"format": "npm run prettier && npm run lint",
"prettier": "prettier --write .",
"lint": "eslint .",
"test": "vitest --watch=false",
"test:watch": "vitest",
"test:file": "vitest without_options.spec.ts",
"prepack": "npm run build",
"prepublishOnly": "npm run test && npm run format && npm run test-coverage",
"test-coverage": "vitest run --coverage"
},
"files": [
"dist/",
"src/",
"LICENSE",
"README.md"
],
"repository": {
"type": "git",
"url": "git+https://github.com/ipikuka/remark-flexible-toc.git"
},
"keywords": [
"unified",
"mdast",
"remark",
"markdown",
"MDX",
"plugin",
"remark plugin",
"TOC",
"table of contents",
"remark toc",
"remark flexible toc"
],
"author": "ipikuka <talatkuyuk@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ipikuka/remark-flexible-toc#readme",
"bugs": {
"url": "https://github.com/ipikuka/remark-flexible-toc/issues"
},
"devDependencies": {
"@eslint/js": "^9.28.0",
"@types/node": "^22.15.29",
"@types/remark-heading-id": "^1.0.0",
"@vitest/coverage-v8": "^3.2.1",
"@vitest/eslint-plugin": "^1.2.1",
"dedent": "^1.6.0",
"eslint": "^9.28.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-prettier": "^5.4.1",
"globals": "^16.2.0",
"prettier": "^3.5.3",
"rehype-format": "^5.0.1",
"rehype-stringify": "^10.0.1",
"remark-gfm": "^4.0.1",
"remark-heading-id": "^1.0.1",
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.2",
"rimraf": "^5.0.10",
"type-coverage": "^2.29.7",
"typescript": "^5.8.3",
"typescript-eslint": "^8.33.1",
"unified": "^11.0.5",
"vitest": "^3.2.1"
},
"dependencies": {
"@types/mdast": "^4.0.4",
"github-slugger": "^2.0.0",
"mdast-util-to-string": "^4.0.0",
"unist-util-visit": "^5.0.0"
},
"peerDependencies": {
"unified": "^11"
},
"sideEffects": false,
"typeCoverage": {
"atLeast": 100,
"detail": true,
"ignoreAsAssertion": true,
"ignoreCatch": true,
"strict": true
}
}