
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
envlocalify
Advanced tools
envify and localenv combined as a browserify transform
hughsk/envify and defunctzombie/localenv combined for substack/node-browserify modules.
npm install envlocalify --save-dev
This browserify transform can be used like envify, but in addition, if you use atomify, then:
// [index.js]
var foo = process.env.FOO;
console.log(foo);
And a .env file sitting in your current working dir.
# [.env]
FOO=bar
Running atomify with the envlocalify transform:
(if you change environment files in atomify server and/or watch mode, you need to restart atomify)
atomify --envlocalify
results in
// [index.js]
var foo = "bar";
console.log(foo);
.env should be checked into the repository. Locally, you can overwrite properties specified in it, by creating a .env.local file, which should be added to .gitignore, so every contributor can his own file.
This is useful if you want to create npm tasks for atomify, e.g.:
// [package.json]
//...
"scripts": {
"start": "atomify <see usage below>"
//...
# replaces ".env" as the default env file
atomify --envlocalify [ --envfile .envCustom ]
# overwrites ".env.local" as the default file which extends '.env'
atomify --envlocalify [ --localenvfile .env.mylocal ]
# disables extending '.env'
atomify --envlocalify [ --localenvfile false ]
You can combine both parameters.
defunctzombie/localenv only loads .env files when NODE_PRODUCTION !== 'production'.
You can pass transform options to envlocalify to load custom .env files.
.env file format is described in defunctzombie/localenv readme.
You should use .env files for developer or test environments, not for production* environments.
FAQs
envify and localenv combined as a browserify transform # envlocalify
We found that envlocalify 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.