text-substring-formatter
v1.0.0
Published
A lightweight utility for truncating text to a specified maximum length.
Maintainers
Keywords
Readme
text-substring-formatter
A lightweight utility for truncating text to a specified maximum length. If the text exceeds the limit, an ellipsis ("...") is appended to indicate truncation. Designed with the future in mind, this package is simple yet robust—ready to be integrated into your next project.
Features
- Minimal & Efficient: Only the essential logic to format text.
- Automatic Truncation: Appends an ellipsis when the text exceeds the maximum length.
- TypeScript Support: Written in TypeScript for better reliability and integration.
Installation
npm install text-substring-formatter