Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tui-js/strings

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🪢 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.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.