🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

a11y-string

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a11y-string

Run Accessibility tests against a string of HTML

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

a11y String

This is a simple, fast module that allows you to run a range of accessibility tests against a string of HTML.

Installation

  npm install a11y-string

Example

const a11y = require('a11y-string')

a11y('<html><head><title>Test title</title></head><body><img src="foo.jpg" /></body></html>')
// Returns Error: Image needs alt attribute

Reasoning

There are a lot of great a11y tools that exist today but all of them require an external URL or are framework specific. This project aims to be a lightweight alternative for people who need to run accessibility tests against just a string of HTML.

Keywords

a11y

FAQs

Package last updated on 24 Apr 2017

Did you know?

Socket

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