accname
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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.

/accname/

    Package Sidebar

    Install

    npm i accname

    Weekly Downloads

    4,830

    Version

    1.1.0

    License

    Apache-2.0

    Unpacked Size

    407 kB

    Total Files

    116

    Last publish

    Collaborators

    • google-wombot
    • oisn
    • alexlloyd