10 lines
230 B
TypeScript
10 lines
230 B
TypeScript
|
import { Injectable } from '@nestjs/common';
|
||
|
import * as QRCode from 'qrcode';
|
||
|
|
||
|
@Injectable()
|
||
|
export class QRCodeService {
|
||
|
public async createQRDataURI(input: string): Promise<string> {
|
||
|
return QRCode.toDataURL(input);
|
||
|
}
|
||
|
}
|