Skip to content

eldoy/farge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

Terminal colors and styles the easy way

Resources

License

Stars

Watchers

Forks