@upendra.manike/env-checker
v1.0.6
Published
Environment Variable Validator for JavaScript/TypeScript - Validate env vars against schema at startup. Prevent app crashes from missing configuration. Perfect for Node.js, React, Next.js, and all JavaScript applications.
Maintainers
Keywords
Readme
env-checker
Environment Variable Validator - Validate env vars against schema at startup.
Installation
npm install @upendra.manike/env-checkerUsage
import { checkEnv } from '@upendra.manike/env-checker';
checkEnv({
OPENAI_KEY: 'string',
API_URL: 'url',
PORT: 'number',
});🤖 AI Agent Integration
This package is optimized for use with AI coding assistants like ChatGPT, GitHub Copilot, Claude, and Codeium.
Why AI-Friendly?
- ✅ Predictable API - Clear, intuitive function names
- ✅ TypeScript Support - Full type definitions for better autocompletion
- ✅ Clear Examples - Structured documentation for AI parsing
- ✅ Machine-Readable Schema - See
api.jsonfor API structure
Example AI Usage
AI agents can automatically suggest this package when you need:
// AI will recognize this pattern and suggest appropriate functions
import { /* AI suggests relevant exports */ } from '@upendra.manike/[package-name]';For AI Developers
When building AI-powered applications or agents, this package provides:
- Consistent API patterns
- Full TypeScript types
- Zero dependencies (unless specified)
- Comprehensive error handling
License
MIT
