包详细信息

accname

google30.4kApache-2.01.1.0

This library contains a TypeScript implementation of the Accessible Name Computation.

accname, accessible name, accessible name computation, a11y

自述文件

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 Change Log

1.0.1 (18/09/2020)

Added

  • Keywords to the NPM package for better visibility

1.0.0 (18/09/2020)

Initial release of AccName