1.0.1 • Published 1 year ago
jees-ansi-has v1.0.1
Is string has ANSI ? ✨
Check if the string contains ANSI escape codes ✨
Install
npm i jees-ansi-has # 📥 install
import has from 'jees-ansi-has'; // 📦 import
Syntax
const result = has('text'); /* ✨ have fun ✨ */
Examples
has('\u001B[31mPlain !\u001B[0m'); // => true has('Plain !'); // => false
Documents
API
This package is part of the
jees
framework.
Made with ❤ by Maysara Elshewehy