A TypeScript library for calculating the accessible name of HTMLElements.
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);This is not an officially supported Google product.