
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
English | 中文
env.d.ts file for environment variables into a specified directorynpm install prenv
yarn add prenv
pnpm add prenv
env.d.ts File for Environment Variables into a Specified DirectoryUsage:
prenv-type --prenv-dir . --prenv-output ./types
// or generate to some workspace app
prenv-type --prenv-dir ./workspace/some-app --prenv-output ./workspace/some-app/types
using in package.json
{
"scripts": {
"test": "prenv-type --prenv-dir . --prenv-output ./types"
}
}
Usage:
prenv --prenv-dir . --prenv-name developer commands
// using for vitest
prenv --prenv-dir . --prenv-name developer vitest
// using for some node app
prenv --prenv-dir . --prenv-name developer node your-app.js
// using for vite
prenv --prenv-dir . --prenv-name developer vite build
using in package.json
{
"scripts": {
"test": "prenv --prenv-dir . --prenv-name developer vitest",
"build": "prenv --prenv-dir . --prenv-name developer vite build",
"start": "prenv --prenv-dir . --prenv-name developer node your-app.js"
}
}
| Name | Alias |
|---|---|
| d | development |
| dev | development |
| t | test |
| p | production |
| prod | production |
| v2 Params | Default |
|---|---|
| --prenv-dir | . |
| --prenv-name | development |
| --prenv-output | . |
FAQs
在启动前设置具名环境变量 & 生成环境变量类型到 .d.ts
The npm package prenv receives a total of 10 weekly downloads. As such, prenv popularity was classified as not popular.
We found that prenv 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
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.