1.0.33 • Published 2 years ago

unbroken v1.0.33

Weekly downloads
1,668
License
MIT
Repository
github
Last release
2 years ago

Unbroken

A module to detect broken links in Markdown files

Unbroken is a NodeJS command-line utility to detect broken links in .md files.

Usage

npx unbroken [options] The exit code represents the number of errors detected so you can use it e.g. in CI loops.

Options

C:\rnw>npx unbroken -?
Unbroken 1.0 - no more broken links in markdown!

Options

  -e, --exclusions <file>            The exclusions file. Default is .unbroken_exclusions
  -l, --local-only                   Do not test http and https links
  -d, --dir <directory>              The directory to crawl
  -i, --init                         Creates a default exclusions file if one doesn't already exist
  -a, --allow-local-line-sections    Whether links to local files are allowed to have line sections like
                                     foo.cpp#L12
  -q, --quiet
  -s, --superquiet
  -?, --help

Project home: https://github.com/asklar/unbroken

Exclusions & suppressions

You can create a .unbroken_exclusions file to suppress individual errors, or to skip traversing certain directories. Just copy/paste the error you want to suppress from the output onto the .unbroken_exclusions file, or add a directory prefix preceded by a !. You can also use globs.

Example:

URL not found https://github.com/microsoft/react-native-windows/tree/master/current while parsing test\readme.md (HTTP 404)

!node_modules

!test\test2\test.md

!**/node_modules
1.0.33

2 years ago

1.0.29

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.28

3 years ago

1.0.27

3 years ago

1.0.25

3 years ago

1.0.24

3 years ago

1.0.23

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago