Closed mariusa closed 1 year ago
Should the import does not work with the CommonJS interop already?
Could you please add to README how to use import
?
Works fine for me with import:
import bcrypt from "bcrypt";
// later
await bcrypt.compare(password, hash);
README mentions usage only with
require
As some projects are moving to usingimport
instead, would you please support usage withimport
as well, for node 16.x?