A simple node tool to add a key (default is 'SECRET') to a file (default is .env
) using the crypto library's randomBytes function.
Install the module globally with npm install -g generate-secret
Run using generate-secret
and specify the file and key or override using --yes
to use the default values