A one line JS script that prints out a new private key generated from ethers.js.
console.log(require("ethers").ethers.Wallet.createRandom().privateKey);
⚠️ This repo merely exists to serve as an example of how to generate your own private key. It is not recommended, however, this is a fully functional package and you are welcome to clone it and use at your own risk.
Install packages (ethers.js)
npm install
Link the executable
npm link
> eth-keygen
0xaed12345...