string-true-oneline
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-true-oneline
About
This module transforms a string to a oneline string considering escape sequences.
Warning!
This module does not supported an ANSI escape codes. And simply removes them before forming line.
const so = const inspect = inspectconst assert = const chalk = const actColor = const actClear = const exp = 'hello world!'assertassert
Examples
const so = const inspect = inspectconst assert = var act = var exp = 'hello world!'assert var act = var exp = 'h e l l o w o r l d !'assert
Related
- string-render - base module
- murky - like util.format with additional placeholders