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.
 
 
 
 
 
 
Carl Johnson 3b20c094c5 Windows Compatability (#15) 7 years ago
.circleci Publish Docker image 7 years ago
features Refactor rakefile 7 years ago
test Test CheckMany method with invalid files 8 years ago
.gitignore Refactor rakefile 7 years ago
.gometalinter.json Add gometalinter configuration file 7 years ago
Dockerfile Refactor Dockerfile 7 years ago
Gemfile Initialize command code and test 8 years ago
Gemfile.lock Update gems 7 years ago
LICENSE Initial commit 8 years ago
README.md Implement --exclude <regex> argument 7 years ago
arguments.go Bump version 7 years ago
arguments_test.go Fix some lint errors 7 years ago
constants.go Rename constants file 7 years ago
extensions.go Refactor extension.go 8 years ago
extensions_test.go Move isHTMLFile function 8 years ago
file_checker.go Rename some variables 7 years ago
file_checker_test.go Implement --exclude <regex> argument 7 years ago
file_result.go Capitalize first letters of file result messages 8 years ago
file_result_test.go Test file result 8 years ago
main.go Check error of Fprintln 7 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 Refactor rakefile 7 years ago
semaphore.go Create semaphore object 8 years ago
semaphore_test.go Create semaphore object 8 years ago
url_checker.go Windows Compatability (#15) 7 years ago
url_checker_test.go Implement --exclude <regex> argument 7 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
utilities.go Rename files 7 years ago
utilities_test.go Rename files 7 years ago

README.md

liche

Circle CI Codecov 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>] [-d <directory>] [-r] [-t <timeout>] [-x <regex>] [-v] <filenames>...

Options:
	-c, --concurrency <num-requests>  Set max number of concurrent HTTP requests. [default: 512]
	-d, --document-root <directory>  Set document root directory for absolute paths.
	-r, --recursive  Search Markdown and HTML files recursively
	-t, --timeout <timeout>  Set timeout for HTTP requests in seconds. Disabled by default.
	-x, --exclude <regex>  Regex of links to exclude from checking.
	-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

  • File extensions: .md, .html, .htm
  • HTML tags: a, img
  • HTML attributes: href, src
  • URL schemes: http, https

Also supports relative and absolute paths. (Absolute paths need --document-root option.)

License

MIT