dcodeIO / bcrypt.js

Optimized bcrypt in plain JavaScript with zero dependencies.
Other
3.47k stars 264 forks source link

ES Modules #104

Open lastmjs opened 4 years ago

lastmjs commented 4 years ago

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 commented 4 years ago

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

ghost commented 4 years ago

+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

jthrilly commented 3 years ago

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?