From 5e71b0f3cc4d66dae39844d1069220e71acb32f6 Mon Sep 17 00:00:00 2001 From: sammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 21 Mar 2021 13:36:43 -0400 Subject: [PATCH] Created Ansikit (markdown) --- Ansikit.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Ansikit.md diff --git a/Ansikit.md b/Ansikit.md new file mode 100644 index 0000000..badde6b --- /dev/null +++ b/Ansikit.md @@ -0,0 +1,12 @@ +Ansikit is an ANSI code library, it makes it so you just have to write simple functions instead of making a big mess trying to make your prompt blue :) +It's a port of a Node.js library by the same name ([which is made by me, sammy](https://github.com/Luvella/AnsiKit)). + +# Functions +### AnsiKit.text(string) + +Formats `string`, replacing `{keys}` with appropriate color codes. + +#### Example +```lua +print(ansikit.text "{blue}blue text hello {green}im green{reset}") +``` \ No newline at end of file