// This is probably the easiest way to use bcryptjs in nodejs const bcrypt = require("bcryptjs") const password = "123456" bcrypt.hash(password, 10) .then('''do something''') .catch(err => console.log(err))