Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Dec 11, 2024
1 parent 7547068 commit 4f5959a
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
![finder](https://medv.io/assets/finder.png)

# finder

![finder](https://medv.io/assets/finder.png)

[![Test](https://github.com/antonmedv/finder/actions/workflows/test.yml/badge.svg)](https://github.com/antonmedv/finder/actions/workflows/test.yml)

**The CSS Selector Generator**
Expand All @@ -21,13 +21,12 @@ npm install @medv/finder

## Usage

```js
import {finder} from '@medv/finder'
```ts
import { finder } from '@medv/finder';

document.addEventListener('click', event => {
const selector = finder(event.target)
console.log(selector)
})
document.addEventListener('click', (event) => {
const selector = finder(event.target);
});
```

## Example
Expand All @@ -52,7 +51,7 @@ const selector = finder(event.target, {
threshold: 1000,
maxNumberOfTries: 10_000,
timeoutMs: undefined,
})
});
```

### seedMinLength
Expand Down

0 comments on commit 4f5959a

Please sign in to comment.