mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-27 00:08:09 +03:00
9 lines
221 B
TypeScript
9 lines
221 B
TypeScript
|
import { Injectable, PipeTransform } from '@nestjs/common';
|
||
|
|
||
|
@Injectable()
|
||
|
export class ReverseTextPipe implements PipeTransform {
|
||
|
transform(value: string): string {
|
||
|
return value.split('').reverse().join('');
|
||
|
}
|
||
|
}
|