feat: add Text Truncate tool

Implement Text Truncate tool with options for truncating text from the right, left, and line-by-line.
Allows setting custom truncation length and defining a truncation indicator.
This commit is contained in:
EugSh
2025-03-10 13:09:22 +03:00
parent 7646b8bbaf
commit 19bdc5a53c
6 changed files with 418 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ import { tool as stringSplit } from './split/meta';
import { tool as stringJoin } from './join/meta';
import { tool as stringReplace } from './text-replacer/meta';
import { tool as stringRepeat } from './repeat/meta';
import { tool as stringTruncate } from './truncate/meta';
export const stringTools = [
stringSplit,
@@ -20,7 +21,8 @@ export const stringTools = [
stringRemoveDuplicateLines,
stringToMorse,
stringReplace,
stringRepeat
stringRepeat,
stringTruncate
// stringReverse,
// stringRandomizeCase,
// stringUppercase,