google / accname

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

accname

A TypeScript library for calculating the accessible name of HTMLElements.

Usage

To install accname with NPM, run:

$ npm install accname

Once installed, import and use accname as follows:

import {getAccessibleName} from 'accname';

const elem = document.getElementById('target');
const name = getAccessibleName(elem);

Disclaimer

This is not an officially supported Google product.

About

License:Other


Languages

Language:TypeScript 75.3%Language:JavaScript 15.8%Language:HTML 4.4%Language:CSS 4.4%Language:Shell 0.1%