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.
@jimdo/serverless-dotenv
Advanced tools
serverless plugin to fetch environment variables and write it to a .env file
This serverless plugin generates a .env
file based on the environment variables in the serverless.yml
. The idea is to use this environment variables for further tasks like integration tests etc. It works great with serverless offline
, so you can start serverless offline, the plugin will hook into the process and create the .env
file. You will find the .env
file in the .serverless
folder of your project.
It will collect the global environment variables of the poject as well as all environment variables of the functions. It will also add API_ENDPOINT
and IS_OFFLINE
to your environment if you run the plugin via serverless offline
.
Add the npm package to your project:
# Via yarn
$ yarn add @jimdo/serverless-dotenv
# Via npm
$ npm instal @jimdo/serverless-dotenv --save
Add the plugin to your serverless.yml
:
plugins:
- '@jimdo/serverless-dotenv'
That's it! You can now type serverless dotenv
in your terminal to generate the .env
file based on your serverless configuration. Alternative you can just start serverless offline
to generate it.
Feel free to contribute to this project! Our JavaScript is written based on standardJS. We recommend to use a standardJS
plugin for your Editor, but you can also lint your code with yarn run lint
- respectively npm run lint
. Please don't forget to add unit and/or integration tests. Thanks <3
FAQs
serverless plugin to fetch environment variables and write it to a .env file
The npm package @jimdo/serverless-dotenv receives a total of 232 weekly downloads. As such, @jimdo/serverless-dotenv popularity was classified as not popular.
We found that @jimdo/serverless-dotenv demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.