Skip to content

Commit

Permalink
chore(docs): add wasm link extract example
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Aug 21, 2023
1 parent 725e569 commit f3eb382
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions kayle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ import { kayleLint } from "kayle/lint";
await kayleLint("https://a11ywatch.com");
```

## WASM

Extract all links from a web page fast:

```ts
import { extractLinks } from "kayle/wasm";

const links = await extractLinks({ page, browser }, "https://www.drake.com");
```

## Testing

In order to run full e2e test first run `npm install puppeteer` or `npm install @playwright/test` to install chromium locally.
Expand Down
4 changes: 2 additions & 2 deletions kayle/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "kayle",
"version": "0.5.31",
"description": "Extremely fast and accurate accessibility testing using CDP",
"version": "0.5.32",
"description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.",
"main": "./build/index.js",
"keywords": [
"accessibility"
Expand Down

0 comments on commit f3eb382

Please sign in to comment.