mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user