every friday, I share some (small or big) project that I've worked on, for other...

@joepie91@slightly.tech

every friday, I share some (small or big) project that I've worked on, for others to try out and have fun with on their weekend!

this week, it's a tiny utility library for JS: pad-without-control-characters. it works like String#padStart and String#padEnd, except it also works for strings that have terminal control characters, like color escape codes. it doesn't count those characters, so the padded string actually ends up displaying correctly on a terminal!

you can find it here: https://codeberg.org/joepie91/pad-without-control-characters - enjoy!

:boost_request: #FridayRelease #ProjectToot #javascript #terminal