-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
64 additions
and
67 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Brokr | ||
|
||
Brokr is a tool, to find broken links in your project, | ||
|
||
### Install | ||
|
||
To install brokr run | ||
```sh | ||
cargo install --git https://github.com/0xMimir/brokr | ||
``` | ||
|
||
### Usage | ||
|
||
To find broken links in your project just run | ||
```sh | ||
brokr | ||
or | ||
brokr --source-dir PATH-TO-YOUR-PROJECT | ||
``` | ||
Output: | ||
``` | ||
Finding links in: "./tests/example/index.html" | ||
Finding links in: "./tests/example/random.txt" | ||
Finding links in: "./tests/example/README.md" | ||
Finding links in: "./README.md" | ||
Found 3 invalid links | ||
File: "./tests/example/index.html" | ||
Url: https://somewhere.nowhere/there | ||
File: "./tests/example/random.txt" | ||
Url: https://link.random/there | ||
File: "./tests/example/README.md" | ||
Url: https://random.link.here/da | ||
``` | ||
|
||
By default brokr will scan links in html, txt and md files, but you can specify what files you want to be scanned, for example to search only html files: | ||
```sh | ||
brokr --extensions html | ||
Finding links in: "./tests/example/index.html" | ||
|
||
Found 1 invalid links | ||
|
||
File: "./tests/example/index.html" | ||
Url: https://somewhere.nowhere/there | ||
``` | ||
|
||
or to search only html and markdown files: | ||
```sh | ||
brokr --extensions html,md | ||
Finding links in: "./tests/example/index.html" | ||
Finding links in: "./tests/example/README.md" | ||
Finding links in: "./README.md" | ||
|
||
Found 2 invalid links | ||
|
||
File: "./tests/example/index.html" | ||
Url: https://somewhere.nowhere/there | ||
|
||
File: "./tests/example/README.md" | ||
Url: https://random.link.here/da | ||
``` |