just finding a space within next 3 characters form actual breeaking point. If the string has to be truncated from start then it searches towards left and if the string has to be truncated from end then it searched towards right, so that the length of the truncated string is not more than the columns argument passed.
some changes to the code were done by xo --fix (xo asked for them) like doing destructuring.
just finding a space within next 3 characters form actual breeaking point. If the string has to be truncated from start then it searches towards left and if the string has to be truncated from end then it searched towards right, so that the length of the truncated string is not more than the
columns
argument passed.some changes to the code were done by
xo --fix
(xo asked for them) like doing destructuring.Fixes #8