0.1.3 • Published 2 years ago
farge v0.1.3
Farge
Terminal colors and styles the easy way.
Extremely minimal implementation, no dependencies.
Install
npm i farge
Usage
const farge = require('farge')({
// Set to true to add newline automatically
newline: false
})
// Bold text
farge.bold.log('hello')
// Green text
farge.green.log('hello')
// Red text
farge.red.log('hello')
// Dim text
farge.green.log('hello')
// Bold and green, combine as many as you want
farge.bold.green.log('hello')
See lib/colors.js for all the possible colors and styles.
ISC Licensed. Enjoy!