
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
next-env-cmd
Advanced tools
CLI command for loading .env files using @next/env and spawn process using cross-spawn modules.
Note: This is a standalone command and can be used without installing Next.js framework.
$ npm install next-env-cmd
Use Next.js Environment Variables filename format.
/.env
/.env.development
/.env.development.local
/.env.test
/.env.test.local
And then in package.json.
{
"script": {
// defaults to load development env vars
"dev": "next-env-cmd node start.js",
// load production env vars in home directory
"start": "NODE_ENV=production next-env-cmd -d ~/ node start.js",
// load test env vars for testing (using alias "nexenv")
"test": "NODE_ENV=test nexenv jest"
}
}
Additional command options.
Usage: next-env-cmd [options] <command> [...args]
Examples:
$ next-env-cmd node start.js # load .env files in CWD
$ next-env-cmd -d ~/ node start.js # load .env files in ~/
$ nexenv -p ../ node start.js # alias shorthand command
Options:
-v, --version output the version number
-d, --dir [path] Custom env directory path (default: "./")
-p, --parent [path] Parent env directory path to be merged as defaults
-h, --help display help for command
MIT
FAQs
Load .env files using @next/env module
The npm package next-env-cmd receives a total of 50 weekly downloads. As such, next-env-cmd popularity was classified as not popular.
We found that next-env-cmd 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.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.