]> git.ardis.lu - envpass/commitdiff
Note alternative `--import` flag
authorArdis Lu <ardisglu@gmail.com>
Wed, 2 Sep 2026 04:17:14 +0000 (21:17 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 2 Sep 2026 04:17:14 +0000 (21:17 -0700)
README.md

index 2781b8867c508f2b1ce7ed2f41123c1a0f859351..5db5573dd9ac11eab6b29550cac67029fded87cb 100644 (file)
--- a/README.md
+++ b/README.md
@@ -28,6 +28,12 @@ This command will automatically open a web browser to trigger the "sign in with
 import '@ardislu/envpass/decrypt';
 ```
 
+Alternatively, you can use the [`--import` flag](https://nodejs.org/download/release/latest/docs/api/cli.html#--importmodule) to load the module without changing your code:
+
+```
+node --import "@ardislu/envpass/decrypt" index.js
+```
+
 This is a side effect only import which will run the `decrypt` function with default settings. When it is run, it will open a web browser to trigger the "sign in with passkey" flow where you can select the same passkey you used to encrypt your variables. It will use the passkey to decrypt and set the variables in `process.env` for the remainder of the process.
 
 3. To decrypt and overwrite your `.env` file with the decrypted values (i.e., undo `npx envpass encrypt`), run:
This page took 0.037899 seconds and 4 git commands to generate.