Skip to content

Commit

Permalink
docs: add browser usage in readme
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Michelson <opensource@erik.michelson.eu>
  • Loading branch information
ErikMichelson committed Feb 29, 2024
1 parent 1fa8eeb commit e09b554
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ The library is **ESM-only**. See [this note by sindresorhus][esm-note] to learn
npm install array-changeset
```

### In browser

```html
<script type="module">
import { Changeset } from "https://cdn.jsdelivr.net/npm/array-changeset@1/+esm";
// your code using Changeset
</script>
```

## Usage

```javascript
Expand Down

0 comments on commit e09b554

Please sign in to comment.