UNPKG

mdast-util-toc

Version:

Generate a Table of Contents (TOC) from a given Markdown file

93 lines (92 loc) 2.47 kB
{ "name": "mdast-util-toc", "version": "5.0.1", "description": "Generate a Table of Contents (TOC) from a given Markdown file", "license": "MIT", "keywords": [ "mdast", "util", "toc" ], "repository": "syntax-tree/mdast-util-toc", "bugs": "https://github.com/syntax-tree/mdast-util-toc/issues", "funding": { "type": "opencollective", "url": "https://opencollective.com/unified" }, "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", "contributors": [ "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)", "Jonathan Haines <jonno.haines@gmail.com> (https://barrythepenguin.github.io)" ], "types": "types/index.d.ts", "files": [ "types/index.d.ts", "lib", "index.js" ], "dependencies": { "@types/mdast": "^3.0.3", "@types/unist": "^2.0.3", "extend": "^3.0.2", "github-slugger": "^1.2.1", "mdast-util-to-string": "^1.0.5", "unist-util-is": "^4.0.0", "unist-util-visit": "^2.0.0" }, "devDependencies": { "browserify": "^16.0.0", "dtslint": "^2.0.0", "nyc": "^15.0.0", "prettier": "^1.0.0", "remark": "^11.0.0", "remark-attr": "^0.9.0", "remark-cli": "^7.0.0", "remark-parse": "^7.0.0", "remark-preset-wooorm": "^6.0.0", "remark-usage": "^7.0.0", "tape": "^4.0.0", "tinyify": "^2.0.0", "typescript": "^3.0.0", "unified": "^8.0.0", "unist-builder": "^2.0.0", "xo": "^0.25.0" }, "scripts": { "format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix", "build-bundle": "browserify . -s mdastUtilTOC > mdast-util-toc.js", "build-mangle": "browserify . -s mdastUtilTOC -p tinyify > mdast-util-toc.min.js", "build": "npm run build-bundle && npm run build-mangle", "test-api": "node test", "test-coverage": "nyc --reporter lcov tape test/index.js", "test-types": "dtslint types", "test": "npm run format && npm run build && npm run test-coverage && npm run test-types" }, "nyc": { "check-coverage": true, "lines": 100, "functions": 100, "branches": 100 }, "prettier": { "tabWidth": 2, "useTabs": false, "singleQuote": true, "bracketSpacing": false, "semi": false, "trailingComma": "none" }, "xo": { "prettier": true, "esnext": false, "ignores": [ "mdast-util-toc.js" ] }, "remarkConfig": { "plugins": [ "preset-wooorm", "remark-usage" ] } }