From 8920b60dbdda663e1b4386c611f35d5a090ff1d1 Mon Sep 17 00:00:00 2001 From: josephrocca <1167575+josephrocca@users.noreply.github.com> Date: Mon, 20 Jan 2020 14:59:48 +1100 Subject: [PATCH 1/2] Add unpkg script tag installation example Helpful for newbies like me who don't use browserify, and didn't realise it was as easy as including a script tag (until I saw the codepen examples). --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 917dd0f..253e414 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,16 @@ $ npm install @ffmpeg/ffmpeg > 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 +Or, using a script tag in the browser: + +``` + + +``` + ## Documentation - [API](https://github.com/ffmpegjs/ffmpeg.js/blob/master/docs/api.md) From 63446ace8465e7a6742d8095e6aef71acc73e84c Mon Sep 17 00:00:00 2001 From: josephrocca <1167575+josephrocca@users.noreply.github.com> Date: Mon, 20 Jan 2020 15:03:01 +1100 Subject: [PATCH 2/2] Syntax highlighter on unpkg example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 253e414..a84715c 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ $ npm install @ffmpeg/ffmpeg Or, using a script tag in the browser: -``` +```html