Skip to content

Commit 3eaf30b

Browse files
authored
Merge pull request #24 from josephrocca/patch-1
Add unpkg script tag installation example in readme
2 parents 2f04484 + 4972413 commit 3eaf30b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ $ npm install @ffmpeg/ffmpeg
6363

6464
> As we use `worker_threads` which was introduced in Node.js v10.5.0, please remember to add `--experimental-worker` if you are using Node.js v10, and you don't have to add anything if you are using Node.js v12
6565
66+
Or, using a script tag in the browser:
67+
68+
```html
69+
<script src="https://unpkg.com/@ffmpeg/[email protected]/dist/ffmpeg.min.js"></script>
70+
<script>
71+
const { createWorker } = FFmpeg;
72+
...
73+
</script>
74+
```
75+
6676
## Documentation
6777

6878
- [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md)

0 commit comments

Comments
 (0)