Skip to content

Commit

Permalink
chore(docs): add simple events example
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mendez committed Dec 4, 2023
1 parent 5265f00 commit 7a9eab9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions book/src/simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

We use the node-addon to port the Rust project over with napi to target node.js.

There are some performance drawbacks from the addon, even still the crawls are lightning fast and performant.
There are some performance drawbacks from the addon, even still the crawls are lightning fast and efficient.

## Usage

Expand Down Expand Up @@ -36,7 +36,6 @@ const onPageEvent = async (err: Error | null, page: NPage) => {
links.push(page);
};

// params in order event, background, and headless chrome
await website.crawl(onPageEvent);
console.log(website.getLinks());
```
Expand Down

0 comments on commit 7a9eab9

Please sign in to comment.