Skip to content

trynova-ai/auto-ids-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-ids-js

Automatically inject ids into elements at runtime

Installation

To use the Auto Ids package, install the package and initialize it in your application:

npm install @trynova-ai/auto-ids-js

Basic Usage

import testDataIdObserver from '@trynova-ai/auto-ids-js';

// Initialize the MutationObserver
const observer = testDataIdObserver();

// The observer will now monitor the DOM and assign 'data-testid' attributes
// to new 'input', 'button', and 'a' elements as they are added.

License

Apache License 2.0

About

Automatically inject ids into elements at runtime

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published