0.0.15 • Published 3 years ago
providerjs v0.0.15
ProviderJS
A NodeJS framework for create general purpose.
Write using TypeScript with Visual Studio Code.
import { Injectable, Application } from 'providerjs';
@Injectable()
export class OneService {
public value = 'OneService';
}
@Application({
imports: [],
providers: [OneService],
exports: []
})
export class OneModule {
public constructor(
oneService: OneService
) {
console.log('OneModule constructor: OneService: ' + oneService.value);
}
}Installation
$ npm install providerjsFeatures
- Lightweight
- Dependencie Inject system
- Intercept abstract implementation
Docs
- Github for Official Code
Quick Start
Create a empty NPM package:
npm init -yInstall ProviderJS:
npm install providerjs --saveWork with code:
code .Example
https://github.com/Cliveburr/providerjs/tree/master/tests