Skip to content

Commit

Permalink
Docs: add an import snippet (#2700)
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Mar 3, 2023
1 parent 1ae22fd commit 1ffb823
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,24 @@ See a [tutorial](https://wavesurfer-js.org/docs) and [examples](https://wavesurf
Have a question about integrating wavesurfer.js on your website? Feel free to ask in our forum: https://github.com/wavesurfer-js/wavesurfer.js/discussions/categories/q-a

## Quick start
Install the package:

```
npm install wavesurfer.js --save
# or
yarn add wavesurfer.js
```

# or
And import it like so:
```
import WaveSurfer from 'wavesurfer.js'
```

<script src="https://unpkg.com/wavesurfer.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
If you're not using a package manager, simply insert the script from a CDN:
```
<script src="https://unpkg.com/wavesurfer.js"></script>
```

Create a container in your HTML:
Expand Down

0 comments on commit 1ffb823

Please sign in to comment.