From f3eb3823a5a8c514c5915dec80e1f34d2589158e Mon Sep 17 00:00:00 2001 From: j-mendez Date: Mon, 21 Aug 2023 09:20:28 -0400 Subject: [PATCH] chore(docs): add wasm link extract example --- kayle/README.md | 10 ++++++++++ kayle/package.json | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/kayle/README.md b/kayle/README.md index aae01683..fe73a815 100644 --- a/kayle/README.md +++ b/kayle/README.md @@ -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. diff --git a/kayle/package.json b/kayle/package.json index 0589c35f..70019f0a 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -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"