bcrypt.js icon indicating copy to clipboard operation
bcrypt.js copied to clipboard

ES Modules

Open lastmjs opened this issue 4 years ago • 3 comments

Hey, it would be great if bcrypt could support ES Modules natively (in the source code), which are the standard JavaScript module format moving forward across the browser and Node.js. I would love to be able to do something like this natively in the browser:

import * as bcrypt from 'bcrypt';

lastmjs avatar Jul 29 '19 18:07 lastmjs

@cekvenich I'm also curious about this thumbs down, do you think this is a bad idea?

lastmjs avatar Aug 08 '19 16:08 lastmjs

+1 Still a bit too early, but def. to keep on the radar. From Node.js Foundation

--experimental-modules flag is hopefully dropped in October 2019

ghost avatar Aug 22 '19 16:08 ghost

Hello from the future!

Now that the --experimental-modules flag is dropped, and ECMA modules in node are enabled by default, should this be revisited?

jthrilly avatar May 13 '21 08:05 jthrilly