Making your Dart command-line apps funky! 💃
I always thought that the output of command-line apps was just a slew of text and a little bit boring. So I decided to spice things up a little! TermStyle gives you the ability to use emojis and colors in your terminal!
In terms of colors, these colors are currently provided by Term Style:
- Red
- Green
- Blue
- Cyan
- Magenta
- Yellow
These emojis are currently provided by TermStyle in six different categories:
grinningFace
: 😀laughCry
: 😂upsideDownFace
: 🙃heartsInFace
: 🥰smilingFace
: 😊haloFace
: 😇winkingFace
: 😉kissingFace
: 😚angryFace
: 😠crazyFace
: 🤪thinkingFace
: 🤔naughtyface
: 😈
seeNoEvil
: 🙈animalGorilla
: 🦍windCloud
: 💨sweatDroplets
: 💦dogFace
: 🐶unicornHead
: 🦄catFace
: 🐱horseHead
: 🐴pandaFace
: 🐼bearFace
: 🐻tigerFace
: 🐯
readHeart
: ❤️blackHeart
: 🖤backArrow
: 🔙soonArrow
: 🔜topArrow
: 🔝infinitySign
: ♾️multiplySign
: ✖️plusSign
: ➕divideSign
: ➗minusSign
: ➖tickSign
: ✔️
kitchenKnife
: 🔪scissors
: ✂️bomb
: 💣gun
: 🔫hammer
: 🔨wrench
: 🔧hammerAndWrench
: 🛠️hammerAndPick
: ⚒️pick
: ⛏️woodSaw
:not supported by GitHub markdown
axe
: 🪓
prideFlag
: 🏳️🌈transFlag
:not supported by GitHub markdown
rainbow
: 🌈peopleKissing
:not supported by GitHub markdown
party
: 🎉coupleHeart
:not supported by GitHub markdown
sparkles
: ✨confetti
: 🎊maleBunnies
: 👯♂️kiss
: 💋
yarn
: 🧶headPhones
: 🎧piano
: 🎹bowAndArrow
: 🏹paintBrush
: 🖌️paintPalette
: 🎨sewingNeedle
:not supported by GitHub markdown
threadRoll
: 🧵syringe
: 💉pill
: 💊
To add TermStyle to your project's dependencies, add this to your project's pubspec.yaml
:
dependencies:
...
termstyle:
git: git://github.com/angeldollface/termstyle.git
The three dots represent anything else that you might have in the dependencies
section.
Having done that, re-fetch your project's dependencies by running this in the project's root directory:
$ dart pub get
To import all methods, add this to the top of your .dart
file:
import 'package:termstyle/termstyle.dart';
To inspect the available APIs, read the source code, please. I've split everything by subject so it should be easy to understand.
- Term Style 💃 by Alexander Abraham 🖤 a.k.a. "Angel Dollface" 🎎 🎀
- Licensed under the MIT license.