Toolverse
All skills

env-typegen-typescript-types-from-env

by openclaw

Generate TypeScript types from .env files with smart inference. Type-safe environment variables. Optional Zod schema. Free CLI tool.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
openclaw
Category
Mobile
Views
1

About this skill

Generate TypeScript types from .env files with smart inference. Type-safe environment variables. Optional Zod schema. Free CLI tool.

How to use

  1. Zainstaluj narzędzie globalnie lub użyj npx: npm install -g @lxgicstudios/env-typegen. Jeśli wolisz nie instalować, możesz uruchamiać polecenia bezpośrednio przez npx @lxgicstudios/env-typegen.

  2. Przygotuj plik .env w katalogu projektu. Narzędzie domyślnie szuka pliku o nazwie .env, ale możesz wskazać inny plik (np. .env.local) jako argument: npx @lxgicstudios/env-typegen .env.local.

  3. Uruchom generator: npx @lxgicstudios/env-typegen. Domyślnie tworzy plik env.d.ts w bieżącym katalogu. Jeśli chcesz zmienić ścieżkę wyjściową, użyj flagi -o, na przykład npx @lxgicstudios/env-typegen -o src/types/env.d.ts.

  4. Wygenerowany plik zawiera interfejs Env z typami dla każdej zmiennej (string, number, boolean), funkcję getEnv() do bezpiecznego dostępu do zmiennych oraz deklarację globalną ProcessEnv. Możesz teraz importować i używać getEnv() w swoim kodzie z pełnym wsparcie typów.

  5. Opcjonalnie: jeśli chcesz dodać walidację Zod, uruchom polecenie z flagą --zod: npx @lxgicstudios/env-typegen --zod. Wygeneruje również schemat Zod do runtime'owej walidacji zmiennych środowiskowych.

  6. Dostosuj nazwę interfejsu, jeśli potrzebujesz, za pomocą flagi --name, na przykład npx @lxgicstudios/env-typegen --name AppConfig. Powtarzaj generator za każdym razem, gdy dodasz nowe zmienne do .env.

Related skills

csharp-developer

by zenobi-us

Expert C# developer specializing in modern .NET development, ASP.NET Core, and cloud-native applications. Masters C# 12 features, Blazor, and cross-platform development with emphasis on performance and clean architecture.

Mobile
37126

mobile-design

by sickn33

Mobile-first design and engineering doctrine for iOS and Android apps. Covers touch interaction, performance, platform conventions, offline behavior, and mobile-specific decision-making. Teaches principles and constraints, not fixed layouts. Use for React Native, Flutter, or

Mobile
6091

openscad

by mitsuhiko

Create and render OpenSCAD 3D models. Generate preview images from multiple angles, extract customizable parameters, validate syntax, and export STL files for 3D printing platforms like MakerWorld.

Mobile
4291

ios-simulator-skill

by conorluddy

21 production-ready scripts for iOS app testing, building, and automation. Provides semantic UI navigation, build automation, accessibility testing, and simulator lifecycle management. Optimized for AI agents with minimal token output.

Mobile
19154

build-macos-apps

by glittercowboy

Build professional native macOS apps in Swift with SwiftUI and AppKit. Full lifecycle - build, debug, test, optimize, ship. CLI-only, no Xcode.

Mobile
31136

slidev

by XIYO

Comprehensive guide for Slidev - a web-based presentation framework for developers. Covers Markdown syntax, layouts, components, animations, theming, and exporting. Use this skill when creating or working with developer presentations using Slidev.

Mobile
223353