encenv
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

encenv

Painless encrypted environment variable storage and management, similar to Rails custom credentials.

Encenv stores encrypted secrets (with an accompanying public key) in a file you can freely check in to version control. Variables can be freely set by anyone using the public key, but a private key is required for decryption.

Install

npm i encenv

Get started

Initialize encrypted .encenv file for storing variables

npx encenv init

(this command prints a private key; store it in production env as e.g. ENCENV_KEY)

Add secrets

npx encenv set MY_API_KEY foobarfoobarfoobar123

Decrypt in production

require('encenv').config(process.env.ENCENV_KEY)

Readme

Keywords

none

Package Sidebar

Install

npm i encenv

Weekly Downloads

0

Version

0.0.6

License

MIT

Unpacked Size

27.6 kB

Total Files

15

Last publish

Collaborators

  • wyozi