
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
dotenv2env is a command line tool that loads environment variables from a .env file and runs a script with those variables as part of the environment. It supports both npm and yarn package managers.
dotenv2env is a command line tool that loads environment variables from a .env file and runs a script with those variables as part of the environment. It supports both npm and yarn package managers.
A good use for this library is in conjunction with the babel-plugin-transform-inline-environment-variables
, which enables you to inline environment variables directly into your code during the build process.
Here is an example of how to use dotenv2env with babel-plugin-transform-inline-environment-variables and expo
npx dotenv2env start
To use dotenv2env, run the following command:
npx dotenv2env <script-name> [options]
The following options are available:
--useFile : Use the specified file as the source of environment variables. Defaults to .env.
--useVerbose: Enable verbose logging.
--useYarn: Use yarn as the package manager instead of npm.
In addition to these options, the user can pass other flags that will be forwarded to the script execution.
To run a script named start with environment variables from a .env file using npm, run the following command:
npx dotenv2env start
To run the same script using yarn instead of npm, run the following command:
npx dotenv2env start --useYarn
To use a different file name for the environment variables, run the following command:
npx dotenv2env start --useFile env.prod
Please note that the --useFile, --useVerbose, and --useYarn parameters are reserved for the library, and all other flags that are passed will be forwarded to the script execution.
dotenv2env is licensed under the MIT License.
Give a ⭐️ if this project helped you!
dotenv2env is licensed under the MIT License.
Made with ♥ by Godrix :wave: Get in touch!
FAQs
dotenv2env is a command line tool that loads environment variables from a .env file and runs a script with those variables as part of the environment. It supports both npm and yarn package managers.
We found that dotenv2env 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 flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.