-
Notifications
You must be signed in to change notification settings - Fork 519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please support usage with import, not just require #892
Comments
Should the import does not work with the CommonJS interop already? |
Could you please add to README how to use |
Works fine for me with import: import bcrypt from "bcrypt";
// later
await bcrypt.compare(password, hash); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
README mentions usage only with
require
As some projects are moving to using
import
instead, would you please support usage withimport
as well, for node 16.x?The text was updated successfully, but these errors were encountered: