Fast Link Checker for Markdown and HTML in Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.circleci Fix repository path Dec 5, 2017
examples Fix absolute path resolution Nov 22, 2017
test Test CheckMany method with invalid files Nov 21, 2017
.gitignore Initialize command code and test Nov 16, 2017
Gemfile Initialize command code and test Nov 16, 2017
Gemfile.lock Initialize command code and test Nov 16, 2017
LICENSE Initial commit Nov 16, 2017
README.md Implement --exclude <regex> argument Aug 1, 2018
arguments.go Fix some lint errors Aug 1, 2018
arguments_test.go Fix some lint errors Aug 1, 2018
consts.go Create markup file finder object Nov 21, 2017
extensions.go Refactor extension.go Nov 22, 2017
extensions_test.go Move isHTMLFile function Nov 21, 2017
file_checker.go Rename some variables Aug 1, 2018
file_checker_test.go Implement --exclude <regex> argument Aug 1, 2018
file_result.go Capitalize first letters of file result messages Nov 22, 2017
file_result_test.go Test file result Nov 21, 2017
main.go Check error of Fprintln Aug 1, 2018
markup_file_finder.go Create markup file finder object Nov 21, 2017
markup_file_finder_test.go Test error case of Find method Nov 21, 2017
rakefile.rb Fix some lint errors Aug 1, 2018
semaphore.go Create semaphore object Nov 18, 2017
semaphore_test.go Create semaphore object Nov 18, 2017
url_checker.go Rename some variables Aug 1, 2018
url_checker_test.go Implement --exclude <regex> argument Aug 1, 2018
url_result.go Capitalize first letters of error messages Nov 18, 2017
url_result_test.go
utils.go Capitalize first letters of file result messages Nov 22, 2017
utils_test.go Capitalize first letters of file result messages Nov 22, 2017

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