Closed xpepermint closed 10 years ago
Any way to remove all colors from a string? Maybe like this.
var clc = require('cli-color'); clc.clear(clc.cyan('my string')) // output: 'my string'
@xpepermint there is cli-color/trim:
cli-color/trim
var clc = require('cli-color'); var clcTrim = require('cli-color/trim'); clcTrim(clc.cyan('my string')) // output: 'my string'
e great... thx @medikoo
Any way to remove all colors from a string? Maybe like this.