@mipet1984/trading-tools-shared
v1.0.15
Published
Shared functions for trading tools NestJS projects
Maintainers
Readme
Trading Tools Shared
Shared functions and modules for trading tools NestJS projects.
Installation
npm install @mipet1984/trading-tools-sharedUsage
Importing the SharedModule
import { Module } from '@nestjs/common';
import { SharedModule } from '@mipet1984/trading-tools-shared';
@Module({
imports: [SharedModule],
// ... your module configuration
})
export class AppModule {}Using Individual Services
import { LogService } from '@mipet1984/trading-tools-shared';
@Injectable()
export class MyService {
constructor(private readonly logService: LogService) {}
someMethod() {
this.logService.log('Hello from shared module!');
}
}Using Helper Functions
import { dateTimeHelper, delayHelper, envValidatorHelper } from '@mipet1984/trading-tools-shared';
// Use the helper functions as neededDevelopment
Building the Package
npm run buildCreating a Local Package
npm run publish:localThis will create a .tgz file that you can install locally in other projects:
npm install /path/to/mipet1984-trading-tools-shared-1.0.0.tgzPeer Dependencies
This package requires the following peer dependencies to be installed in your project:
@nestjs/common^10.0.0class-validator^0.14.0class-transformer^0.5.1typeorm^0.3.0reflect-metadata^0.1.13
License
MIT
