Socket
Socket
Sign inDemoInstall

grunt-accessibility

Package Overview
Dependencies
233
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    grunt-accessibility

Grade your site's accessibility and generate a report from different WCAG levels


Version published
Maintainers
1
Created

Readme

Source

Grunt Accessibility

NPM version Build Status Build status Dependency Status devDependency Status Built with Grunt

Uses AccessSniff and HTML Codesniffer to grade your site's accessibility using different levels of the WCAG guidelines

Grunt Accessibility example

Getting Started

Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-accessibility

Then add this line to your project's grunt.js gruntfile:

grunt.loadNpmTasks('grunt-accessibility');

Documentation

Place this in your grunt file.

accessibility: {
  options: {
    accessibilityLevel: 'WCAG2A'
  },
  test: {
    options: {
      urls: ['http://localhost']
    },
    src: ['example/test.html']
  }
}

Report Generation

You can link to the files you wish to lint using the grunt api. The result will be the results file.

Options

View AccessSniff options for all available options.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

4.0.0

  • New version of AccessSniff
  • Lots of cleanup

3.0.0

  • Move to using AccessSniff

2.2.0

  • Fix SRC globbing pattern
  • Fix partial support
  • Columns and line numbers now exist in the library

2.0.0

  • Add output format to generate reports
  • Add accessibiltyrc option
  • Add line and column number to issues
  • Lots of other tweaks and fixes

1.1.0

  • Add JSON report option
  • Add Dom Element option
  • Add Force option
  • Add Verbose option

1.0.0

  • Exit phantom process when processing is done
  • Update Dependencies
  • Update to grunt 0.4.4

Previous Releases

  • 0.4 Added in ignore rule, refactored some scripts for better injection via phantom
  • 0.3 Fix so you can run another grunt process after running
  • 0.2 Fix so people can actually run this thing now
  • 0.1.1 Update Documentation for install
  • 0.1 Initial release

License

Copyright (c) 2014 Steven Miller Licensed under the MIT license.

Keywords

FAQs

Last updated on 21 Feb 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc