import { Injectable } from '@nestjs/common' ; import { v1 as uuid } from 'uuid' ; @ Injectable ( ) export class GeneratorService { public uuid ( ) { return uuid ( ) ; } public fileName ( ext ) { return this . uuid ( ) + '.' + ext ; } }