New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

asyq

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyq

Generate .env.example from your project's env usage

Source
npmnpm
Version
8.2.0
Version published
Weekly downloads
38
52%
Maintainers
1
Weekly downloads
 
Created
Source

Asyq CLI — Environment Variable Scanner & .env Generator with AI

Automatically generate .env.example files by scanning your codebase for environment variable usage.

Installation

npm install -D asyq
# or
pnpm add -D asyq
# or
yarn add -D asyq

Usage

npx asyq init

Choose between two modes:

  • Default - Fast generation with variable names only
  • AI-assisted - Adds descriptions and example values (requires OpenAI API key)

Commands

CommandDescription
npx asyq initInteractive setup
npx asyq init --forceOverwrite existing files
npx asyq init --monorepoGenerate for each workspace
npx asyq init --debugShow scan diagnostics

Options

OptionDescription
--root <dir>Project root to scan (default: .)
--out <file>Output filename (default: .env.example)
--forceOverwrite without confirmation
--include-lowercaseInclude mixed-case variables
--debugPrint detailed diagnostics
--monorepoGenerate for root + workspaces

Examples

# Basic usage
npx asyq init

# Force overwrite
npx asyq init --force

# Monorepo project
npx asyq init --monorepo

# Custom output
npx asyq init --out .env.template

# Scan specific directory
npx asyq init --root ./packages/api

Set your OpenAI API key:

export OPENAI_API_KEY=sk-...
npx asyq init

Or enter it when prompted (not saved to disk).

Keywords

env

FAQs

Package last updated on 05 Jan 2026

Related posts