UNPKG

env-cipher

Version:

A module to encrypt and decrypt ENV variables

8 lines (6 loc) 228 B
const run = require('./index'); // load .env-cipher into process.env require('dotenv').config({ path: '.env-cipher' }) // decrypt values from process.env with suffix const decrypted = run.envDecipher(); console.log(decrypted);