README
string-render
This module is written on
typescript
, and contains the.d.ts
file.
If you write ontypescript
: just use it in your project and definitions will be automatically uploaded.
npm i -S string-render
About
This module replaces all escape sequence by spaces and line breaks.
Warning!
This module does not supported an ANSI escape codes. And simply removes them before forming line.
const sr = require('string-render')
const inspect = require('util').inspect
const assert = require('assert')
const chalk = require('chalk')
var actColor = sr(`${chalk.green(`12${chalk.red('345')}67`)}8\r!${chalk.blue('@#