1.0.5 • Published 12 months ago

@orderlycode/promise v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
12 months ago

nest-tool

nestjs 개발시 도움될만한 것들을 모아둠

세팅법

pnpm i @orderlycode/nest-tools

  • AppModule 안에 CommonModule을 등록한다.
@Module({
  imports: [
    // ...
    CommonModule
  ],
  // ...
})
export class AppModule {
}

// 같은 Reqeust내에서 context를 추가하고 싶다면 아래와 같이 사용한다.
// 이 경우, Logger에서 항상 해당 내용을 추가하며, 다른 곳에서 request scope 전역변수로 쓸 수 있다.
Context.set("test", 1)
Context.get("test") // 1
  1. App 생성시 logger에 new NestLoggerService()를 등록한다.
const app = await NestFactory.create(AppModule, {
  logger: new NestLoggerService(),
});
1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago

0.0.115

1 year ago

0.0.114

1 year ago

0.0.113

1 year ago