Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eldoy/farge

Terminal colors and styles the easy way
https://github.com/eldoy/farge

Last synced: 6 days ago
JSON representation

Terminal colors and styles the easy way

Awesome Lists containing this project

README

        

# Farge

Terminal colors and styles the easy way.

Extremely minimal implementation, no dependencies.

### Install

```sh
npm i farge
```

### Usage

```js
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](https://github.com/eldoy/farge/blob/master/lib/colors.js) for all the possible colors and styles.

ISC Licensed. Enjoy!