secure-env
secure-env copied to clipboard
Decryt file is not specified by out option
Content
When I decrypt an encrypted file using command line
npx secure-env -d -o config/credentials/development.env.enc -s development_key
I encountered the following error.
Secure-env : ERROR OCCURED .env.enc does not exist.
It seems like that the following line causes this error. https://github.com/kunalpanchal/secure-env/blob/master/lib/cryptography.js#L17
It is fixed by modifying the line as follows. Could you include this fix in the next release?
var inputFile = options.file || options.outputFile || '.env.enc';
Thanks for raising the issue. Maintainer(s) will look into this shortly.
See #20
Why no one merges the #20 in, it's a month now