// Make sure you specify "type": "module" in your own package.json// to be able to use 'import' and 'await' at the top-level.import*aspasswordUtilsfrom'@altcmdio/password-utils'constpasswd=awaitpasswordUtils.generate(16)// deafult is 16 hex charsconsthash=awaitpasswordUtils.hash(passwd,10)// default is 10 salt roundsconsole.log(passwd,hash)console.log(awaitpasswordUtils.compare(passwd,hash))