Strings is a collection of utility functions to make working with strings, characters and text as a whole easier.
Strings includes features such as:
charWidth
andtextWidth
– to get actual width (in columns) occupied by a string in the terminalcharName
– to get name of given charactercropStart
,cropEnd
andslice
– to make working with cutting and cropping strings to fit within certain width easydimensions
– to get space occupied by a string in the terminal (both rows and columns!)insert
– to overlay string on top of anotherstripStyles
– to remove ANSI escape codes from a string
This project is available under MIT License conditions.