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 eae3243
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: corepack enable && corepack prepare yarn@stable --activate

- name: Install Deps
run: yarn --no-immutable && yarn build && cd bench npm i &&
run: yarn --no-immutable && yarn build && cd bench npm i

- name: Run Bench @spider-rs/spider-rs
run: yarn bench
Expand Down
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 eae3243

Please sign in to comment.