Skip to content

crusher-dev/unique-selector-2

Repository files navigation

Unique Selector 2

UniqueSelector gives array of querySelector to uniquely identify element. As a result, you also get most unique selector as key mostUniqueSelector

You can use most unique item or use lift of different unique selector in different scenario. One ideal use case is tracking events from element.

Installation

yarn add unique-selector-2
npm install unique-selector-2

Usage

In Browser

const uniqueSelector2 = new uniqueSelector(configuration)
const data = uniqueSelector2.getUniqueSelector(target);

Using Npm

import uniqueSelector from 'uniqueSelector'
const uniqueSelector2 = new uniqueSelector(configuration)
const data = uniqueSelector2.getUniqueSelector(target);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published