0.1.4 • Published 3 months ago

nestjs-uuid v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

nestjs-uuid

Installation

yarn add nestjs-uuid
npm i nestjs-uuid

How to use

Import module:

@Module({
  imports: [
    UuidModule
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}

Inject uuid service into a provider:

v0.0.5

@Injectable()
export class AppService {
  constructor(@InjectUuidService() private readonly uuidService: UuidService) {}

  getHello() {
    return this.uuidService.generate();
  }
}

After v.0.0.5

@Injectable()
export class AppService {
  constructor(private readonly uuidService: UuidService) {}

  getHello() {
    return this.uuidService.generate();
  }
}
  getHello() {
    return this.uuidService.generate({ version: 1 });
  }
  getHello() {
    return this.uuidService.generate({ version: 4 });
  }

0.1.0

3 months ago

0.1.2

3 months ago

0.1.1

3 months ago

0.0.6--dev

3 months ago

0.1.4

3 months ago

0.1.3

3 months ago

0.0.61--dev

3 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.5

7 months ago

0.0.4

7 months ago

0.0.6

7 months ago

0.0.1

11 months ago