Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eldoy/farge
- Owner: eldoy
- License: mit
- Created: 2022-02-05T22:46:29.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-22T09:36:44.000Z (over 2 years ago)
- Last Synced: 2024-10-14T01:47:33.919Z (about 1 month 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!