You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@dotenvx/dotenvx

Package Overview
Dependencies
Maintainers
2
Versions
221
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dotenvx/dotenvx - npm Package Compare versions

Comparing version

to
0.3.2

2

package.json
{
"version": "0.3.0",
"version": "0.3.2",
"name": "@dotenvx/dotenvx",

@@ -4,0 +4,0 @@ "description": "a better dotenv–from the creator of `dotenv`",

@@ -89,9 +89,12 @@ ![dotenvx](https://dotenvx.github.io/better-banner.png)

```sh
# run as a command-line tool
docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js
$ docker run -it --rm -v $(pwd):/app dotenv/dotenvx run -- node index.js
```
Or in any image:
```sh
# include in a Dockerfile
# example coming soon
FROM node:latest
RUN echo "HELLO=World" > .env && echo "console.log('Hello ' + process.env.HELLO)" > index.js
RUN curl -sfS https://dotenvx.sh/! | bash
CMD ["dotenvx", "run", "--", "echo", "Hello $HELLO"]
```

@@ -259,5 +262,17 @@

3. dotenvx is a standalone binary, so (if you want) you can just download it directly:
3. Or install in your `package.json`
```sh
npm i @dotenvx/dotenvx --save
```
```json
// package.json
"scripts": {
"start": "./node_modules/.bin/dotenvx run -- nodex index.js"
}
```
3. Or download it directly as a standalone binary:
```sh
curl -sfS https://dotenvx.sh/! | sh

@@ -264,0 +279,0 @@ ```

@@ -52,3 +52,3 @@ #!/usr/bin/env node

program.command('run')
.description('Inject env variables into your application process')
.description('inject env variables into your application process')
.option('-f, --env-file <paths...>', 'path to your env file', '.env')

@@ -55,0 +55,0 @@ .option('-o, --overload', 'override existing env variables')