1.0.1 • Published 1 year ago
jees-ansi-style v1.0.1
ANSI Styling 🎨
Unify various text formatting utilities into a single, powerful toolkit. Simplify text customization and manipulation in the terminal environment with ease. 🎨✨
Install
npm i jees-ansi-style # 📥 install
import style from 'jees-ansi-style'; // 📦 import
Syntax
const result = style(text, options); /* ✨ have fun ✨ */
Example
CODE
console.log( style( 'RED fg' , { fg : 'red' } ) ); console.log( style( 'RED bg' , { bg : 'red' } ) ); console.log( style( 'BOLD attr' , { attr : 'bold' } ) ); console.log( style( 'RED fg (HEX)' , { fg : '#de5151' } ) ); console.log( style( 'RED fg (RGB)' , { fg : [222,81 ,81 ] } ) );
RESULT
Documents
API
This package is part of the
jees
framework.
Made with ❤ by Maysara Elshewehy