@_.uran/hello
v1.0.1
Published
nestjs 通用模块示例
Downloads
4
Readme
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