A secure dotenv–from the creator of dotenv.
- Encrypt
- Commit
- Ship
Install · Quickstart
Quickstart [](https://www.npmjs.com/package/@dotenvx/dotenvx) [](https://www.npmjs.com/package/@dotenvx/dotenvx)
Install and use it in code just like dotenv.
npm install @dotenvx/dotenvx --save// index.js
require('@dotenvx/dotenvx').config()
// or import '@dotenvx/dotenvx/config' // for esm
console.log(`Hello ${process.env.HELLO}`)
or install globally - unlocks dotenv for any language, framework, or platform!
<details<summarywith npm 🌍</summary<br
npm i -g @dotenvx/dotenvx
dotenvx encrypt
</details <details<summarywith curl 🌐</summary<br
curl -sfS https://dotenvx.sh | sh
dotenvx encrypt
</details
<details<summarywith brew 🍺</summary<br