Nevermind! Figured it out. For future reference, this is how you compare IPB passwords from Node.
const bcrypt = require("bcrypt");
// convert the hashing algorithm from 2y to 2a
let encrypted = "$2a$10$ykiLOC/Lu24CIGUiJmH.1eYlIRvdfBhrd2qEBukwU4Qjmx1UWM96e";
let plaintext = "mypassword";
bcrypt.compare(plaintext, encrypted, function (err, result) {
console.log(result);
});
I verified this with my own password and it works 😁