https://github.com/eldoy/farge
Terminal colors and styles the easy way
https://github.com/eldoy/farge
Last synced: 4 months ago
JSON representation
Terminal colors and styles the easy way
- Host: GitHub
- URL: https://github.com/eldoy/farge
- Owner: eldoy
- License: mit
- Created: 2022-02-05T22:46:29.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T09:36:44.000Z (over 3 years ago)
- Last Synced: 2025-02-03T21:06:09.641Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!