Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
compare-env-keys
Advanced tools
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
The use case for this is to run this script before you deploy a website or web application where you just to make sure your staging.env
or production.env
dotenv files have all the environment variables that are present in a local.env
.
This helps prevent a deploy that fails in staging
or production
because an environment variable is missing.
Install with npm:
$ npm install --save-dev compare-env-keys
Install with yarn:
$ yarn add --dev arr-diff compare-env-keys
In your package.json
, add to scripts:
{
// ...
"scripts": {
"predeploy:staging": "compare-env-keys env/local.env env/staging.env",
"predeploy:production": "compare-env-keys env/local.env env/production.env",
"predeploy:all": "compare-env-keys env/local.env env/staging.env env/production.env"
}
}
FAQs
A simple script you can use in your package.json to make sure that all the keys in a dotenv file are present in other dotenv files.
The npm package compare-env-keys receives a total of 5 weekly downloads. As such, compare-env-keys popularity was classified as not popular.
We found that compare-env-keys 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.