0.1.2 • Published 8 months ago

tsdoc-link-check v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

tsdoc-link-check

A simple tool to check the broken links in your TSDoc comments

Usage

You can use this tool as a CLI or as a library.

Options

OptionDescriptionDefault
--patterns -pGlob patterns to search for TSDoc comments["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsx"]
--ignored -iGlob patterns to ignore["**/node_modules/**/*", "**/dist/**/*", "**/build/**/*", "**/*.test.*", "**/*.spec.*"]
--ignore-links -lLinks to ignore[]
--git-ignore, -gUse .gitignore to ignore filestrue
--no-log, -oDisable loggingfalse

Tips

It will parse every @link in the comments and check if the link is working or not by sending a HEAD request. Requests has a default retry count of 3.

CLI will exit with code 1 if there is any broken link. If you don't set --no-log option, it will print the broken links to the console.