New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dotenvx/dotenvx

Package Overview
Dependencies
Maintainers
2
Versions
189
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 0.13.0 to 0.14.0

src/cli/actions/genexample.js

4

package.json
{
"version": "0.13.0",
"version": "0.14.0",
"name": "@dotenvx/dotenvx",

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

"qrcode-terminal": "^0.12.0",
"update-notifier": "^5.1.0",
"update-notifier": "^7.0.0",
"winston": "^3.11.0",

@@ -42,0 +42,0 @@ "xxhashjs": "^0.2.2"

@@ -426,3 +426,3 @@ ![dotenvx](https://dotenvx.com/better-banner.png)

* <details><summary>Docker</summary><br>
* <details><summary>Docker 🐳</summary><br>

@@ -447,11 +447,23 @@ > Add the `dotenvx` binary to your Dockerfile

* <details><summary>Fly.io</summary><br>
* <details><summary>Fly.io 🎈</summary><br>
> Add the `dotenvx` binary to your Dockerfile
```sh
coming soon
# Install dotenvx
RUN curl -fsS https://dotenvx.sh/ | sh
```
> Use it in your Dockerfile CMD
```sh
# Prepend dotenvx run
CMD ["dotenvx", "run", "--", "node", "index.js"]
```
see [fly guide](https://dotenvx.com/docs/platforms/fly)
</details>
* <details><summary>Heroku</summary><br>
* <details><summary>Heroku 🟣</summary><br>

@@ -482,16 +494,43 @@ > Add the buildpack, installing the `dotenvx` binary to your heroku deployment.

* <details><summary>Netlify</summary><br>
* <details><summary>Netlify 🔷</summary><br>
> Add the `dotenvx` npm module
```sh
coming soon
npm install @dotenvx/dotenvx --save
```
> Use it in your `package.json scripts`
```json
"scripts": {
"dotenvx": "dotenvx",
"dev": "dotenvx run -- next dev --turbo",
"build": "dotenvx run -- next build",
"start": "dotenvx run -- next start"
},
```
see [netlify guide](https://dotenvx.com/docs/platforms/netlify)
</details>
* <details><summary>Railway</summary><br>
* <details><summary>Railway 🚄</summary><br>
> Add the `dotenvx` binary to your Dockerfile
```sh
coming soon
# Install dotenvx
RUN curl -fsS https://dotenvx.sh/ | sh
```
> Use it in your Dockerfile CMD
```sh
# Prepend dotenvx run
CMD ["dotenvx", "run", "--", "node", "index.js"]
```
see [railway guide](https://dotenvx.com/docs/platforms/railway)
</details>

@@ -507,3 +546,3 @@

* <details><summary>Vercel</summary><br>
* <details><summary>Vercel ▲</summary><br>

@@ -539,3 +578,3 @@ > Add the `dotenvx` npm module

* <details><summary>GitHub Actions</summary><br>
* <details><summary>GitHub Actions 🐙</summary><br>

@@ -569,3 +608,3 @@ > Add the `dotenvx` binary to GitHub Actions

> Integrate tightly with [GitHub](https://github.com) 🐙
> Integrate tightly with [GitHub](https://github.com) 🐙 and as a team
```sh

@@ -576,33 +615,29 @@ $ dotenvx hub login

more details coming soon.
**beta**: more details coming soon.
&nbsp;
## Guides
## More features
* [dotenvx/docs](https://dotenvx.com/docs)
* [quickstart guide](https://dotenvx.com/docs/quickstart)
> Keep your `.env` files safe
* [`dotenvx gitignore`](https://dotenvx.com/docs/features/gitignore) – gitignore your `.env` files
* [`dotenvx precommit`](https://dotenvx.com/docs/features/precommit) – prevent `.env` files from being committed to code
* [`dotenvx prebuild`](https://dotenvx.com/docs/features/prebuild) – prevent `.env` files from being built into your docker container
* `dotenvx genexample` – generate `.env.example` file (coming soon)
&nbsp;
## Pre-commit
## Guides
You can prevent `.env` files from being committed to code with this pre-commit hook.
* [quickstart guides](https://dotenvx.com/docs/quickstart)
* [run anywhere](https://dotenvx.com/docs/quickstart/run)
* [multi-environment](https://dotenvx.com/docs/quickstart/environments)
* [encrypted envs](https://dotenvx.com/docs/quickstart/encryption)
* [dotenvx/docs](https://dotenvx.com/docs)
* [languages](https://dotenvx.com/docs#languages)
* [frameworks](https://dotenvx.com/docs#frameworks)
* [platforms](https://dotenvx.com/docs#platforms)
* [ci/cd](https://dotenvx.com/docs#cis)
```
dotenvx precommit --install
```
Run without the `--install` flag to preview output.
```
dotenvx precommit
```
To ignore the pre-commit hook run your git commit with the `--no-verify` flag.
```
git commit -am "msg" --no-verify
```
&nbsp;

@@ -609,0 +644,0 @@

@@ -41,2 +41,3 @@ const fs = require('fs')

run () {
logger.verbose('appending to .gitignore')
new Generic('.gitignore', true).run()

@@ -48,2 +49,3 @@ }

run () {
logger.verbose('appending to .dockerignore (if existing)')
new Generic('.dockerignore').run()

@@ -55,2 +57,3 @@ }

run () {
logger.verbose('appending to .npmignore (if existing)')
new Generic('.npmignore').run()

@@ -62,2 +65,3 @@ }

run () {
logger.verbose('appending to .vercelignore (if existing)')
new Generic('.vercelignore').run()

@@ -71,12 +75,5 @@ }

logger.verbose('appending to .gitignore')
new Git().run()
logger.verbose('appending to .dockerignore (if existing)')
new Docker().run()
logger.verbose('appending to .npmignore (if existing)')
new Npm().run()
logger.verbose('appending to .vercelignore (if existing)')
new Vercel().run()

@@ -83,0 +80,0 @@

@@ -72,5 +72,10 @@ #!/usr/bin/env node

.description('decrypt .env.vault to .env*')
.addHelpText('after', examples.encrypt)
.action(require('./actions/decrypt'))
// dotenvx gitignore
program.command('gitignore')
.description('append to .gitignore file (and if existing, .dockerignore, .npmignore, and .vercelignore)')
.addHelpText('after', examples.gitignore)
.action(require('./actions/gitignore'))
// dotenvx precommit

@@ -89,7 +94,7 @@ program.command('precommit')

// dotenvx gitignore
program.command('gitignore')
.description('append to .gitignore file (and if existing, .dockerignore, .npmignore, and .vercelignore)')
.addHelpText('after', examples.gitignore)
.action(require('./actions/gitignore'))
// dotenvx genexample
program.command('genexample')
.description('generate .env.example')
.option('-f, --env-file <paths...>', 'path(s) to your env file(s)', '.env')
.action(require('./actions/genexample'))

@@ -96,0 +101,0 @@ // dotenvx hub

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc