chalk/wrap-ansi

leading space removed when line starts with ansi escape #27

also posted onGitHub

const chalk = require('chalk');
const wrapAnsi = require('wrap-ansi');

const s = chalk.bgGreen(` ${chalk.black('OK')} `);
console.log(s);
console.log(wrapAnsi(s, 100, { trim: false }));

screen shot 2018-03-27 at 1 34 18 pm


Fund this Issue

$60.00
Rewarded

Rewarded pull request

Recent activities

stroncium was rewarded by sindresorhus for chalk/wrap-ansi# 27
about 6 years ago
stroncium submitted an output to  chalk/ wrap-ansi# 27
about 6 years ago