New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

envpicker

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

envpicker

A simple environment switcher for managing multiple .env file

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
0
Created
Source

envpicker

A simple CLI tool for managing multiple environment files in your Node.js projects.

Overview

envpicker helps developers easily manage and switch between different environment files (.env) in their local development environment. It provides simple commands to initialize, list, activate, and delete environment configurations.

Installation

Install globally using npm:

npm install -g envpicker

Or use directly with npx:

npx envpicker [command]

Usage

Available Commands

envpicker [command]

Commands:
  list | ls               List all available environments
  activate | use [env]    Switch to specified environment
  save [env]              Save current .env to /env directory
  deactivate | stop       Remove active environment
  init                    Initialize default environment files
  delete [env]            Delete specific environment file

Basic Operations

  • Initialize default environment files:
envpicker init

This will create:

  • env/.env.development
  • env/.env.staging
  • env/.env.production
  • List available environments:
envpicker list
  • Activate an environment:
envpicker activate development
  • Deactivate current environment:
envpicker deactivate
  • Delete an environment:
envpicker delete development
  • Save an environment:
envpicker save development

File Structure

The tool expects your project to have the following structure:

your-project/
├── env/
│   ├── .env.development
│   ├── .env.staging
│   └── .env.production
├── .env (created when environment is activated)
└── package.json

Requirements

  • Node.js
  • Bash/Shell environment

Limitations

  • CLI-only tool (no GUI interface)
  • Designed for local development use

Bug Reports and Feature Requests

Please submit any bugs or feature requests to our issues page.

License

ISC License

Security

Note: This tool is intended for local development use only. Be careful with your environment files and never commit them to version control.

Keywords

env

FAQs

Package last updated on 09 Dec 2024

Did you know?

Socket

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.

Install

Related posts