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.
yarn add unique-selector-2
npm install unique-selector-2
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);
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.
MIT License.