Fast Link Checker for Markdown and HTML in Go
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Yota Toyama 8f539e59c9 Fix utils test 8 years ago
.circleci Report coverage 8 years ago
examples Test document root option 8 years ago
test Create test data 8 years ago
.gitignore Initialize command code and test 8 years ago
Gemfile Initialize command code and test 8 years ago
Gemfile.lock Initialize command code and test 8 years ago
LICENSE Initial commit 8 years ago
README.md Update examples 8 years ago
arguments.go Test getArguments function 8 years ago
arguments_test.go Test error cases of getArguments function 8 years ago
consts.go Create markup file finder object 8 years ago
extensions.go Move isHTMLFile function 8 years ago
extensions_test.go Move isHTMLFile function 8 years ago
file_checker.go Add document root option 8 years ago
file_checker_test.go Add document root option 8 years ago
file_result.go Fix misuse of else if 8 years ago
main.go Use markup file finder 8 years ago
markup_file_finder.go Create markup file finder object 8 years ago
markup_file_finder_test.go Test error case of Find method 8 years ago
rakefile.rb s/linkcheck/liche/g 8 years ago
semaphore.go Create semaphore object 8 years ago
semaphore_test.go Create semaphore object 8 years ago
url_checker.go Support relative paths 8 years ago
url_result.go Capitalize first letters of error messages 8 years ago
url_result_test.go Test url_result.go 8 years ago
utils.go Use markup file finder 8 years ago
utils_test.go Fix utils test 8 years ago

README.md

liche

Circle CI Go Report Card License

asciicast

liche is a command to check links' connectivity in Markdown and HTML files. It checks all a and img tags in specified files.

Installation

go get -u github.com/raviqqe/liche

Usage

> liche --help
Link checker for Markdown and HTML

Usage:
	liche [-c <num-requests>] [-r] [-t <timeout>] [-v] <filenames>...

Options:
	-c, --concurrency <num-requests>  Set max number of concurrent HTTP requests. [default: 32]
	-r, --recursive  Search Markdown and HTML files recursively
	-t, --timeout <timeout>  Set timeout for HTTP requests in seconds. Disabled by default.
	-v, --verbose  Be verbose.

Examples

> liche file.md
> liche file1.md file2.md
> liche file.html
> liche file1.html file2.html
> liche -r directory # Search all Markdown and HTML files recursively.

Supported properties

  • HTML tags: a, img
  • HTML attributes: href, src
  • URL schemes: http, https

License

MIT