Strip ANSI escape codes from a string !
-
npm i jees-ansi-strip # 📥 install
import strip from 'jees-ansi-strip'; // 📦 import
-
const result = strip(text); /* ✨ have fun ✨ */
-
strip('\u001B[31mPlain !\u001B[0m'); // => Plain !
This package is part of the
jees
framework.
Made with ❤ by Maysara Elshewehy