
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.
Ensure the correct env variables are being used for production builds
npm install clean-env --save-dev
Create a JavaScript, JSON or YAML file, or skip the config an embed in the package.json file under the key clean-env.
If you make a file, it must be one of the following names and stored in the root of the project folder:
.clean-env.js.clean-env.json.clean-env.yaml.clean-env.ymlThen add any key to over write these defaults:
{
"required": [],
"excluded": [],
"dotenv": ".env",
}
If you need to privide an alternative path to your .env file, then over write the dotenv key in the config with the correct name, relative to the root of the project.
{
dotenv: './config/.env'
}
If you would like to not load the .env file before checking the ENV for variables, then change the dotenv key to false.
dotenv: false
If you require a translated version of this script or would like to change the wording of any of the error messages, then add a translations key to the config and over write any of these defaults:
translations:
missingRequired: "Clean ENV did not find the following required ENV variables."
foundExcluded: "Clean ENV has found the following excluded ENV variables in the ENV."
errorStatement: "Your ENV is not in a clean state."
errorQuestion: "Are you sure you want to continue with the build? (y)"
yes: "y"
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureFAQs
Ensure the correct env variables are being used for production builds
We found that clean-env 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.