slice-ansi
Install
$ npm install slice-ansiUsage
const chalk = require('chalk');
const sliceAnsi = require('slice-ansi');
const input = 'The quick brown ' + chalk.red('fox jumped over ') +
'the lazy ' + chalk.green('dog and then ran away with the unicorn.');
console.log(sliceAnsi(input, 20, 30));API
sliceAnsi(input, beginSlice, [endSlice])
input
beginSlice
endSlice
Related
Maintainers
License
Last updated