chalk/wrap-ansi


Do you want to work on this issue?
You can request for a bounty in order to promote it!
URLs larger than column always begin on new line #38
nicholaschiasson posted onGitHub
I've only noticed this happen with URLs and only with hard: true
. Even with wordWrap: false
it still happens as long as hard: true
is passed.
Normal 'word':
> const wrapAnsi = require('wrap-ansi');
> console.log(wrapAnsi('hi, this IsAReallyLongWordButIDoNotKnowHowItShouldBehave', 32, {hard: true}));
hi, this IsAReallyLongWordButIDo
NotKnowHowItShouldBehave
ā
Hyperlink:
> const wrapAnsi = require('wrap-ansi');
> console.log(wrapAnsi('hi, this https://IsAReallyLongWordButIDoNotKnowHowItShouldBehave.com', 32, {hard: true}));
hi, this
https://IsAReallyLongWordButIDoN
otKnowHowItShouldBehave.com
ā