Skip to content

Commit e09b554

Browse files
committed
docs: add browser usage in readme
Signed-off-by: Erik Michelson <opensource@erik.michelson.eu>
1 parent 1fa8eeb commit e09b554

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
@@ -18,6 +18,16 @@ The library is **ESM-only**. See [this note by sindresorhus][esm-note] to learn
1818
npm install array-changeset
1919
```
2020

21+
### In browser
22+
23+
```html
24+
<script type="module">
25+
import { Changeset } from "https://cdn.jsdelivr.net/npm/array-changeset@1/+esm";
26+
27+
// your code using Changeset
28+
</script>
29+
```
30+
2131
## Usage
2232

2333
```javascript

0 commit comments

Comments
 (0)