No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
.gitignore
License_MIT
README.md
index.js
package.json
screenshot_boxify.png
screenshot_debug.png
screenshot_hr.png
screenshot_menu.png
screenshot_text.png

README.md

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 separated)

Installation


npm i dandy-ui

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

Some usages

WARNING: it should say 'dandy-ui' not 'dandy-js' in the comment in the images.

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

screenshot boxify

function greenTxt(text, bgColor, formated)
// red, blue, yellow, white, black, purple, cyan also available

screenshot text

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

screenshot menu

function debugMsg(msg)

screenshot debugMsg

function hr(char = "_")

screenshot hr