Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dotenv-config-cli

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dotenv-config-cli - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

6

lib/main.js

@@ -55,3 +55,3 @@ var $bcymd$process = require("process");

name: "envPath",
message: "Path to your .env file. defaults to root .env",
message: "Specify the path to your .env file. The default location is the root directory ('.env').",
initial: ".env",

@@ -64,3 +64,3 @@ onState: (0, $75681df33308e0f6$export$5be329c813f660e0),

name: "configPath",
message: "Path to your config file. defaults to config/index.ts or .js",
message: "Specify the path to your configuration file. If not provided, the tool will default to 'config/index.ts' or '.js'. in the root directory.",
initial: "config",

@@ -111,3 +111,3 @@ onState: (0, $75681df33308e0f6$export$5be329c813f660e0),

var $17e2a7c06afd6377$exports = {};
$17e2a7c06afd6377$exports = JSON.parse('{"name":"dotenv-config-cli","version":"0.1.8","description":"A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.","source":"src/index.ts","main":"lib/main.js","module":"lib/module.js","types":"lib/types.d.ts","files":["lib/**/*","bin/**/*"],"scripts":{"dotenv-config":"ts-node src/index.ts","build":"./scripts/build.sh","link":" npm link ","prepublishOnly":"npm run build -- patch","test":"jest","prepare":"husky install"},"keywords":[],"author":"Bocar Wane","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bocarw121/dotenv-config-generator.git"},"bin":{"dotenv-config":"./bin/dotenv-config.js"},"homepage":"https://github.com/bocarw121/dotenv-config-generator","devDependencies":{"@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.8.3","@types/jest":"^29.5.5","@types/lodash":"^4.14.199","@types/prompts":"^2.4.6","@types/shelljs":"^0.8.13","husky":"^8.0.3","jest":"^29.7.0","parcel":"^2.8.3","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"ansicolor":"^1.1.100","commander":"^11.1.0","lodash":"^4.17.21","prompts":"^2.4.2","shelljs":"^0.8.5"}}');
$17e2a7c06afd6377$exports = JSON.parse('{"name":"dotenv-config-cli","version":"0.1.9","description":"A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.","source":"src/index.ts","main":"lib/main.js","module":"lib/module.js","types":"lib/types.d.ts","files":["lib/**/*","bin/**/*"],"scripts":{"dotenv-config":"ts-node src/index.ts","build":"./scripts/build.sh","link":" npm link ","prepublishOnly":"npm test","test":"jest","prepare":"husky install"},"keywords":[],"author":"Bocar Wane","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bocarw121/dotenv-config-generator.git"},"bin":{"dotenv-config":"./bin/dotenv-config.js"},"homepage":"https://github.com/bocarw121/dotenv-config-generator","devDependencies":{"@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.8.3","@types/jest":"^29.5.5","@types/lodash":"^4.14.199","@types/prompts":"^2.4.6","@types/shelljs":"^0.8.13","husky":"^8.0.3","jest":"^29.7.0","parcel":"^2.8.3","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"ansicolor":"^1.1.100","commander":"^11.1.0","lodash":"^4.17.21","prompts":"^2.4.2","shelljs":"^0.8.5"}}');

@@ -114,0 +114,0 @@

@@ -55,3 +55,3 @@ import {argv as $4sKNM$argv, exit as $4sKNM$exit} from "process";

name: "envPath",
message: "Path to your .env file. defaults to root .env",
message: "Specify the path to your .env file. The default location is the root directory ('.env').",
initial: ".env",

@@ -64,3 +64,3 @@ onState: (0, $8b2c2bd1a81cff43$export$5be329c813f660e0),

name: "configPath",
message: "Path to your config file. defaults to config/index.ts or .js",
message: "Specify the path to your configuration file. If not provided, the tool will default to 'config/index.ts' or '.js'. in the root directory.",
initial: "config",

@@ -111,3 +111,3 @@ onState: (0, $8b2c2bd1a81cff43$export$5be329c813f660e0),

var $97c14c9239d39cfb$exports = {};
$97c14c9239d39cfb$exports = JSON.parse('{"name":"dotenv-config-cli","version":"0.1.8","description":"A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.","source":"src/index.ts","main":"lib/main.js","module":"lib/module.js","types":"lib/types.d.ts","files":["lib/**/*","bin/**/*"],"scripts":{"dotenv-config":"ts-node src/index.ts","build":"./scripts/build.sh","link":" npm link ","prepublishOnly":"npm run build -- patch","test":"jest","prepare":"husky install"},"keywords":[],"author":"Bocar Wane","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bocarw121/dotenv-config-generator.git"},"bin":{"dotenv-config":"./bin/dotenv-config.js"},"homepage":"https://github.com/bocarw121/dotenv-config-generator","devDependencies":{"@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.8.3","@types/jest":"^29.5.5","@types/lodash":"^4.14.199","@types/prompts":"^2.4.6","@types/shelljs":"^0.8.13","husky":"^8.0.3","jest":"^29.7.0","parcel":"^2.8.3","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"ansicolor":"^1.1.100","commander":"^11.1.0","lodash":"^4.17.21","prompts":"^2.4.2","shelljs":"^0.8.5"}}');
$97c14c9239d39cfb$exports = JSON.parse('{"name":"dotenv-config-cli","version":"0.1.9","description":"A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.","source":"src/index.ts","main":"lib/main.js","module":"lib/module.js","types":"lib/types.d.ts","files":["lib/**/*","bin/**/*"],"scripts":{"dotenv-config":"ts-node src/index.ts","build":"./scripts/build.sh","link":" npm link ","prepublishOnly":"npm test","test":"jest","prepare":"husky install"},"keywords":[],"author":"Bocar Wane","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bocarw121/dotenv-config-generator.git"},"bin":{"dotenv-config":"./bin/dotenv-config.js"},"homepage":"https://github.com/bocarw121/dotenv-config-generator","devDependencies":{"@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.8.3","@types/jest":"^29.5.5","@types/lodash":"^4.14.199","@types/prompts":"^2.4.6","@types/shelljs":"^0.8.13","husky":"^8.0.3","jest":"^29.7.0","parcel":"^2.8.3","ts-jest":"^29.1.0","typescript":"^5.0.4"},"dependencies":{"ansicolor":"^1.1.100","commander":"^11.1.0","lodash":"^4.17.21","prompts":"^2.4.2","shelljs":"^0.8.5"}}');

@@ -114,0 +114,0 @@

{
"name": "dotenv-config-cli",
"version": "0.1.8",
"version": "0.1.9",
"description": "A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.",

@@ -17,3 +17,3 @@ "source": "src/index.ts",

"link": " npm link ",
"prepublishOnly": "npm run build -- patch",
"prepublishOnly": "npm test",
"test": "jest",

@@ -20,0 +20,0 @@ "prepare": "husky install"

@@ -24,2 +24,9 @@ # dotenv-config CLI

```bash
# There are the prompts you will see
? Path to your .env file. defaults to root .env › .env
? Path to your config file. defaults to config/index.ts or .js › config
? Is this a TypeScript project? › (Y/n)
```
The CLI will read your `.env` file and generate a config file with environment variables.

@@ -29,2 +36,4 @@

After running the command, the CLI will generate a `config` in the root or in the folder you specified.
```.env

@@ -31,0 +40,0 @@ PRIVATE_KEY=your_private_key_here

{
"name": "dotenv-config-cli",
"version": "0.1.8",
"version": "0.1.9",
"description": "A dot env config generator. Reads your .env file and generates a config file. Supports TypeScript and JavaScript.",

@@ -17,3 +17,3 @@ "source": "src/index.ts",

"link": " npm link ",
"prepublishOnly": "npm run build -- patch",
"prepublishOnly": "npm test",
"test": "jest",

@@ -20,0 +20,0 @@ "prepare": "husky install"

@@ -24,2 +24,9 @@ # dotenv-config CLI

```bash
# There are the prompts you will see
? Path to your .env file. defaults to root .env › .env
? Path to your config file. defaults to config/index.ts or .js › config
? Is this a TypeScript project? › (Y/n)
```
The CLI will read your `.env` file and generate a config file with environment variables.

@@ -29,2 +36,4 @@

After running the command, the CLI will generate a `config` in the root or in the folder you specified.
```.env

@@ -31,0 +40,0 @@ PRIVATE_KEY=your_private_key_here

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