accname
v1.1.0
Published
This library contains a TypeScript implementation of the [Accessible Name Computation](https://www.w3.org/TR/accname-1.1/).
Downloads
48,880
Readme
accname
A TypeScript library for calculating the accessible name of HTMLElements.
Usage
To install accname with NPM, run:
$ npm install accnameOnce 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.
