1.0.1 • Published 1 year ago

@_.uran/hello v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Description

nestjs 通用模块示例

Usage

Installation

$ npm install @koala1/hello
// app.module.ts
import { HelloModule } from '@koala1/hello';

@Module({
  imports: [
    HelloModule
  ],
  controllers: [AppController],
  providers: [AppService],
})

// app.service.ts
import { HelloService } from '@koala1/hello'
@Injectable()
export class AppService {
  constructor(
    public helloService: HelloService,
  ) {
    console.log(this.helloService.getHello()) // Hello
  }
}

API

// HelloService
getHello(): string;

Router

// hello/getHello

Publish

发布方法参考 PUBLISH.md