gerar OTP aleatório no nó js

//https://www.npmjs.com/package/otp-generator

npm install otp-generator --save


const otpGenerator = require('otp-generator')
otpGenerator.generate(6, { upperCaseAlphabets: false, specialChars: false });
serhii.nahornyi