grunt-link-checker
Run node-simple-crawler to discover broken links on your website
Getting Started
If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:
npm install grunt-link-checker --save-dev
Then add this line to your project's Gruntfile.js
gruntfile:
grunt.loadNpmTasks('grunt-link-checker');
Documentation
Minimal Usage
The minimal usage of grunt-link-checker runs with a site
specified:
'link-checker': {
dev: {
site: 'example.com'
}
}
Custom options
noFragment
Type: Boolean
Default: false
Set this to true to speed up your test by not verfiying fragments.
simple-crawler options
Every option specified in the node-simplecrawler is available:
https://github.com/cgiffard/node-simplecrawler#configuring-the-crawler
Changelog
0.0.2 - Added noFragment
flag.
0.0.1 - Check to make sure #
URLs resolve to content with a corresponding id.
0.0.0 - Initial release