File tree Expand file tree Collapse file tree 1 file changed +3
-12
lines changed
Expand file tree Collapse file tree 1 file changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ yarn add @lycorp-jp/tappy puppeteer
1818pnpm add @lycorp-jp/tappy puppeteer
1919```
2020
21- > ** Note** : Puppeteer is a peer dependency. You need to install it separately.
22-
23- ## Examples
21+ ## Usage
2422
2523``` typescript
2624import { type Device , Tappy } from " @lycorp-jp/tappy" ;
@@ -45,7 +43,7 @@ const device: Device = {
4543const result = await tappy .analyze (" https://example.com" , device );
4644
4745console .log (result .elements );
48- // This contains information about all analyzed tappable elements
46+
4947// Example output:
5048// [
5149// {
@@ -60,11 +58,4 @@ console.log(result.elements);
6058await browser .close ();
6159```
6260
63- Check out the [ examples] ( ./examples ) directory for other usage:
64-
65- - [ Visualization] ( ./examples/visualization.ts )
66-
67- ## Requirements
68-
69- - Node.js 20 or higher
70- - Puppeteer (currently the only supported browser adapter)
61+ Check out the [ examples] ( ./examples ) directory for other usage
You can’t perform that action at this time.
0 commit comments