You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note ES Module syntax also works in modern browsers, you just need to add `type="module"` to your `<script>` tag.
47
+
Note ES Module syntax also works in modern browsers. You just need to add `type="module"` to your `<script>` tag.
48
48
```html
49
49
<scripttype="module"src="..."></script>
50
50
```
@@ -54,15 +54,15 @@ Note ES Module syntax also works in modern browsers, you just need to add `type=
54
54
| Function name | Description |
55
55
| --- | --- |
56
56
|`base64ToUint8Array(base64String)`| base64 to Uint8Array |
57
-
|`uint8ArrayToBase64(uint8Array)`| Uint8Array to Base64 (works with any TypedArray, you can use `typedArrayToBase64()` alias) |
58
-
|`uint8ArrayToArrayBuffer(uint8Array)`| Uint8Array to ArrayBuffer (works with any TypedArray, you can use `typedArrayToArrayBuffer()` alias) |
57
+
|`uint8ArrayToBase64(uint8Array)`| Uint8Array to Base64 (Works with any TypedArray. You can use `typedArrayToBase64()` alias.) |
58
+
|`uint8ArrayToArrayBuffer(uint8Array)`| Uint8Array to ArrayBuffer (Works with any TypedArray. You can use `typedArrayToArrayBuffer()` alias.) |
59
59
|`arrayBufferToUint8Array(arrayBuffer)`| ArrayBuffer to Uint8Array |
60
60
|`base64ToArrayBuffer(base64String)`| base64 to ArrayBuffer |
61
61
|`arrayBufferToBase64(arrayBuffer)`| ArrayBuffer to base64 |
62
62
63
63
## Useful case
64
64
65
-
An example for this library would be to convert a base64url VAPID application server key into an Uint8Array to suscribe to Web Push Notifications. You can achieve this by using `base64ToUint8Array(base64String)` function.
65
+
An example for this library would be to convert a base64url VAPID application server key into an Uint8Array to subscribe to Web Push Notifications. You can achieve this by using `base64ToUint8Array(base64String)` function.
0 commit comments