mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-27 16:18:10 +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('');
|
|
}
|
|
}
|