Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
UmamiAppearance committed Sep 13, 2022
1 parent 07e6c71 commit 12bf181
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ BrowserSHAObj is a ESM module and exported as _default_. Importing works as foll
```js
// esm
import SHAObj from "./path/BrowserSHAObj.esm.min.js";

// esm from CDN (jsdelivr)
import SHAObj from "https://cdn.jsdelivr.net/npm/browser-sha-obj@latest/dist/BrowserSHAObj.esm.min.js"
```

```html
<!-- script tag -->
<script src="path/BrowserSHAObj.iife.min.js"></script>
<script src="./path/BrowserSHAObj.iife.min.js"></script>

<!-- script tag from CDN (jsdelivr)-->
<script src="https://cdn.jsdelivr.net/npm/browser-sha-obj@latest/dist/BrowserSHAObj.iife.min.js"></script>
```

### Creating an instance
Expand Down

0 comments on commit 12bf181

Please sign in to comment.