Add requirements
This commit is contained in:
@@ -5,6 +5,11 @@ outline: deep
|
||||
# Quickstart
|
||||
[[toc]]
|
||||
|
||||
## Requirements
|
||||
* **Server-side library:** At least Node 14. Most modern Bun or Deno versions should work too. If you're using Glitch, make sure to set node 14 or higher in your `engines` field in `package.json`
|
||||
|
||||
* **Client-side widget:** All modern browsers should be supported, but the build script specifically targets the last 10 versions of Chrome, Firefox, Safari and Edge.
|
||||
|
||||
## Client-side
|
||||
|
||||
Start by adding importing the Cap widget library from a CDN:
|
||||
|
||||
@@ -7,7 +7,8 @@ npm i @cap.js/server
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> It is recommended to use at least Node.js 14 or Bun 1.0.0. You might experience multiple issues on older versions of these runtimes.
|
||||
> It is recommended to use at least Node.js 14 or Bun 1.0.0. You might experience multiple issues on older versions of these runtimes.
|
||||
> If you're using Glitch, make sure to set node 14 or higher in your `engines` field in `package.json`
|
||||
|
||||
## Example code
|
||||
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @cap.js/widget
|
||||
|
||||
> [!NOTE]
|
||||
> **Requirements:** All modern browsers should be supported, but the build script specifically targets the last 10 versions of Chrome, Firefox, Safari and Edge.
|
||||
|
||||
|
||||
`@cap.js/widget` is Cap's client-side library. It includes the `cap-widget` web component, the invisible mode and the Captcha solver. It is recommended to use unpkg to install it:
|
||||
|
||||
```html
|
||||
|
||||
Reference in New Issue
Block a user