Socket
Socket
Sign inDemoInstall

axobject-query

Package Overview
Dependencies
Maintainers
2
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axobject-query

Programmatic access to information about the AXObject Model


Version published
Weekly downloads
16M
increased by9.58%
Maintainers
2
Weekly downloads
 
Created

What is axobject-query?

The axobject-query package is a utility library that provides a set of queries to access AXObject information used for building accessibility tools, testing, and research. It can be used to query the relationship between ARIA roles and the corresponding Accessible Object Model (AOM) objects, which are part of the platform accessibility APIs.

What are axobject-query's main functionalities?

Query AXObjects by Role

This feature allows you to query the AXObject information for a given ARIA role. In the code sample, we retrieve the AXObject information for the 'button' role.

const { AXObjects, elementAXObjectMap } = require('axobject-query');
const buttonAXObject = AXObjects.get('button');
console.log(buttonAXObject);

Query AXObjects by DOM element

This feature enables querying the AXObject based on the DOM element type. The code sample demonstrates how to get the AXObject for a 'button' element.

const { elementAXObjectMap } = require('axobject-query');
const axObject = elementAXObjectMap.get('button');
console.log(axObject);

List all AXObjects

This feature provides a way to list all available AXObjects. The code sample shows how to retrieve and log all the keys (roles) from the AXObjects map.

const { AXObjects } = require('axobject-query');
const allAXObjects = [...AXObjects.keys()];
console.log(allAXObjects);

Other packages similar to axobject-query

Keywords

FAQs

Package last updated on 15 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc