Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 756 Bytes

README.md

File metadata and controls

22 lines (16 loc) · 756 Bytes

🪢 Strings

Strings is a collection of utility functions to make working with strings, characters and text as a whole easier.

🪛 Features

Strings includes features such as:

  • charWidth and textWidth – to get actual width (in columns) occupied by a string in the terminal
  • charName – to get name of given character
  • cropStart, cropEnd and slice – to make working with cutting and cropping strings to fit within certain width easy
  • dimensions – to get space occupied by a string in the terminal (both rows and columns!)
  • insert – to overlay string on top of another
  • stripStyles – to remove ANSI escape codes from a string

📝 Licensing

This project is available under MIT License conditions.