Skip to content

Commit

Permalink
added README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMimir committed Sep 16, 2023
1 parent ebc2446 commit ec9fa22
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 67 deletions.
65 changes: 0 additions & 65 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ edition = "2021"
[dependencies]
anyhow = "1.0.75"
clap = "4.4.3"
fancy-regex = "0.11.0"
lazy_static = "1.4.0"
linkify = "0.10.0"
reqwest = { version = "0.11.20", features = ["blocking"] }
url = "2.4.1"
Expand Down
64 changes: 64 additions & 0 deletions README.md
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
```

0 comments on commit ec9fa22

Please sign in to comment.