Popularity
0.1
Stable
Activity
0.0
Stable
0
0
0

Description

Minimalistic UI (boxes, colored text, menu and some more) for Node.js

Programming language: JavaScript
Tags: Other     Misc     UI    

Dandy UI alternatives and similar libraries

Based on the "Misc" category.
Alternatively, view Dandy UI alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of Dandy UI or a related project?

Add another 'Misc' Library

README

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