1.0.1 • Published 2 years 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 # 📥 installimport style from 'jees-ansi-style'; // 📦 importSyntax
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
jeesframework.
Made with ❤ by Maysara Elshewehy