10 lines
No EOL
297 B
TypeScript
10 lines
No EOL
297 B
TypeScript
import { Command, ExecuteParams } from "../command";
|
|
|
|
export const rev = new Command()
|
|
.setManual({
|
|
purpose: "Display the reverse of a text"
|
|
})
|
|
.setExecute(function(args, params) {
|
|
const { rawInputValue } = params as ExecuteParams;
|
|
return rawInputValue?.split("").reverse().join("");
|
|
}); |