mirror of
https://github.com/Maks1mS/nestjs-telegraf.git
synced 2024-12-26 15:58: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('');
|
|
}
|
|
}
|