Skip to content

Commit 79f897b

Browse files
committed
Use mjs syntax
1 parent 7c10b56 commit 79f897b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ can be used.
6767
Example:
6868

6969
```js
70-
const _sodium = require('libsodium-wrappers');
71-
(async() => {
70+
import _sodium from 'libsodium-wrappers';
71+
await (async() => {
7272
await _sodium.ready;
7373
const sodium = _sodium;
7474

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy