Skip to content

feat(terminal): add truncateMiddle helper export to ansi utils - #11643

Open
mahenoorsalat wants to merge 1 commit into
remix-run:mainfrom
mahenoorsalat:feat/add-truncate-middle-utils
Open

feat(terminal): add truncateMiddle helper export to ansi utils#11643
mahenoorsalat wants to merge 1 commit into
remix-run:mainfrom
mahenoorsalat:feat/add-truncate-middle-utils

Conversation

@mahenoorsalat

Copy link
Copy Markdown

Description

Adds a type-safe \ runcateMiddle(str, maxLength)\ string formatting helper function to \packages/terminal/src/lib/ansi.ts\ for cleanly formatting long route paths, asset filenames, and CLI log lines in Remix.

Features

  • Middle string truncation with ...\ ellipsis.
  • Exported from @remix-run/terminal\ package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant