$ gnpm install ansi-purge
A tiny function for deleting ANSI escape sequences from a string.
npm install --save ansi-purge
import color from 'tiny-colors';
import ansiPurge from 'ansi-purge';
console.log ( ansiPurge ( color.red ( 'Hello' ) ) ); // => 'Hello'
MIT © Fabio Spampinato
Copyright 2013 - present © cnpmjs.org | Home |