Skip to content

Commit fad6840

Browse files
authored
Merge pull request kelektiv#899 from mariusa/patch-1
2 parents 0e352c2 + 5308e9d commit fad6840

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

+8
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)