Skip to content

Commit

Permalink
document ESM usage (#892)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusa committed Nov 5, 2021
1 parent a9c4d69 commit 2d97681
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,14 @@ async function checkUser(username, password) {
}
```

### ESM import
```javascript
import bcrypt from "bcrypt";

// later
await bcrypt.compare(password, hash);
```

### sync

```javascript
Expand Down

0 comments on commit 2d97681

Please sign in to comment.