@eyjs/core
v1.0.4
Published
EyJS Framework - Core package with dependency injection, bootstrap, logging, and create-app
Maintainers
Readme
@eyjs/core
EyJS Framework - Core package providing dependency injection, bootstrap, logging, and environment configuration.
Installation
npm install @eyjs/coreRequirements
- TypeScript >= 5.0.0
- Node.js >= 18.0.0
Features
- Dependency Injection: Container-based dependency injection with decorators
- Bootstrap: Application bootstrap and service loading
- Logging: Configurable logging with multiple transports
- Environment Configuration: Environment variable management
Usage
import { EyJs, Injectable, Inject } from '@eyjs/core';
@Injectable()
class MyService {
constructor() {}
}
const app = new EyJs();
await app.bootstrap();TypeScript Configuration
Make sure your tsconfig.json includes:
{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"moduleResolution": "bundler"
}
}License
MIT
