Grade your site's accessibility and generate a report from different WCAG levels
npm install gulp-wcag-accessibilityUses AccessSniff and HTML Codesniffer to grade your site's accessibility using different levels of the WCAG guidelines.
npm install gulp-wcag-accessibility --save-devThen add this line to your project's gulpfile.js gulpfile:
```
var wcagAccess = require('gulp-wcag-accessibility');
gulp.task('test', function() {
return gulp.src('')
.pipe(wcagAccess({
accessibilityLevel: 'WCAG2AA',
maxBuffer: '1024*1024',
force: true,
verbose: false,
reportLevels: {
notice: false,
warning: false,
error: true
},
forceUrls: true,
urls: [
'http://www.w3schools.com/',
'http://www.tutorialspoint.com/'
]
}))
});
``- HTML
- JSON
- CSV
- TXT
Default is the HTML Report.
Squizlabs : https://github.com/squizlabs/HTML_CodeSniffer