$ npm install bip39
example.jsvar bip39 = require('bip39') const mnemonic = bip39.generateMnemonic() console.log(mnemonic)