Skip to content

Commit

Permalink
docs(getting-started): installing
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickshan committed Jul 10, 2024
1 parent 31f4c6f commit 4cd1740
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@

You can install `html2canvas-pro` through npm or [download a built release](https://github.com/yorickshan/html2canvas-pro/releases).

### npm
```sh
npm install html2canvas-pro
pnpm / yarn add html2canvas-pro
```

npm install html2canvas-pro
## Usage

```javascript
import html2canvas from 'html2canvas-pro';
```

## Usage

To render an `element` with html2canvas-pro with some (optional) [options](./configuration), simply call `html2canvas(element, options);`

Expand Down

0 comments on commit 4cd1740

Please sign in to comment.