Skip to content

Commit 2d97681

Browse files
authored
document ESM usage (#892)
1 parent a9c4d69 commit 2d97681

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,14 @@ async function checkUser(username, password) {
174174
}
175175
```
176176

177+
### ESM import
178+
```javascript
179+
import bcrypt from "bcrypt";
180+
181+
// later
182+
await bcrypt.compare(password, hash);
183+
```
184+
177185
### sync
178186

179187
```javascript

0 commit comments

Comments
 (0)