From 98e81116ef4197b42dca8c3fde8d1e8166e2a81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ole=20Bj=C3=B8rn=20Michelsen?= Date: Mon, 15 Jul 2024 10:46:00 -0700 Subject: [PATCH] chore: update readme browser section with esm instructions --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4412145..7f4139b 100644 --- a/README.md +++ b/README.md @@ -118,12 +118,27 @@ validate('v1.02'); // false ### Browser +In modern browsers the functions above can be imported as modules: + +```html + +``` + +#### Legacy (UMD) + If included directly in the browser, the functions above are available on the global window under the `compareVersions` object: ```html - +