1.5.0 • Published 5 years ago

dandy-ui v1.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Dandy UI

This is a minimalistic library for creating simple User Interfaces in Node.js.

Currently the you can

  • 'boxify' text

  • print colored text (with or without colored background and/or with bold, underline)

  • create vertical menus that you navigate using the keyboard

  • horizontal line

  • debug messages (clearly seperated)

Installation

npm i dandy-ui

// example: const { boxify  } = require("dandy-ui");

Some usages

function boxify(strArr = [], fgColor = "blue", bgColor = "white", wOnSides = 3, hFreeSpace = 2) 

screenshot boxify

function greenTxt(text, bgColor, formated)

screenshot text

function menu(items = [], callbackFunction, title = "OPTIONS")

screenshot menu

function debugMsg(msg)

screenshot debugMsg

function hr(char = "_")

screenshot hr

1.5.0

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago