0.0.4 • Published 11 months ago

encrypthor v0.0.4

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

encrypthor - a CLI tool to help you not to worry about exposing your secrets in your .env files when you commit them to your repository

NPM: encrypthor

Installation

You can install Encrypthor using the following command:

npm install -g encrypthor

Encrypting your .env file

To encrypt your .env file, you can use the following command:

encrypthor encrypt -f .env

Decrypting your .env file

To decrypt your .env file, you can use the following command:

encrypthor decrypt -f .env

How to commit safely

Using pre-commit hooks with lint-staged and simple-git-hooks

{
  // ... package.json
  "lint-staged": {
    ".env": ["encrypthor encrypt -f"]
  },
  "simple-git-hooks": {
    "pre-commit": "bunx lint-staged --verbose && echo"
  }
}
0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago

0.0.2-beta

11 months ago

0.0.1-beta

11 months ago

0.0.3-alpha

11 months ago

0.0.2-alpha

11 months ago

0.0.1-alpha

11 months ago