
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
command line interface for quickly switching .env file from Keepass entries (content from the Notes field)
Command line tool to quickly switch .env file from Keepass entries (content from the Notes field)
yarn add -D switchenv
or
npm install -D switchenv
You need to go through a one time setup. That will take you a few minutes. Afterwards you'll be able to run this command to change your .env file.
yarn switchenv development
or
npm run switchenv development
It will read and decrypt the keepass file and look for an entry with the title: development. The Notes of that entry will overwrite the .env file.
Nota Bene: It will overwrite the .env file without warning!
NB: Your keepass and key file should never be committed!
package.json file add a switchenv command in the scripts section.{
...
"scripts": {
"switchenv": "node ./node_modules/switchenv --source /envs/env.kdbx --key /envs/keyfile"
},
...
}
In this example
--source /envs/env.kdbx is the path to the keepass file.--key /envs/keyfile is the path to the key file.--target /config.js if you want to write to something else than /.env--title .env-{title}-backend if you have longer entry titles like .env-development-backend instead of just development. In this case, you can still run yarn switchenv developmentFAQs
command line interface for quickly switching .env file from Keepass entries (content from the Notes field)
The npm package switchenv receives a total of 0 weekly downloads. As such, switchenv popularity was classified as not popular.
We found that switchenv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.