Measure the width of text in the terminal and build simple layouts!

ffi string_fold on js for performance master