
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
dotenv-safe-select
Advanced tools
> Allows to select dotenv files and run project with checks against predefined set of env variables during development.
Allows to select dotenv files and run project with checks against predefined set of env variables during development.
During development select any of .env files located into project root and do check current env variables against .env.example file with dotenv-safe.
yarn add dotenv-safe
yarn add --dev dotenv-safe-select
There only one file .env.example which needs to be checked in with version control and used as a single source of truth to check for present env variables.
Create other dotenv files like .env.local, .env.staging, .env.production etc. which are not checked in version control.
Issue development command for example yarn dotenv-safe-select -- next dev.
Optionally it is possible to pass direct path to dotenv file like so yarn dotenv-safe-select --path .env.mine -- next dev.
Select dotenv file you would like run your development against.
Profit :palm_tree:
Inspired by donenv-flow.
Note: the command passed to dotenv-safe-select executed as a child process spawn. I'm thinking to add child process fork support to be able execute .js files.
FAQs
> Allows to select dotenv files and run project with checks against predefined set of env variables during development.
The npm package dotenv-safe-select receives a total of 146 weekly downloads. As such, dotenv-safe-select popularity was classified as not popular.
We found that dotenv-safe-select 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.