whiptail

2.0.4 • Public • Published

whiptail wrapper for nodejs

Build Status Coverage Status Version License Available platform

Installation

npm install whiptail
# have whiptail binary installed (apt-get install whiptail)

API

const Whiptail = require('whiptail');

var whiptail = new Whiptail(); //some options
(async function(){


  var choices = {
    "abc" : "this is a foo",
    "bar" : "this is a bar",
  };

  await whiptail.msgbox("Are you okay");


  var name = await whiptail.inputbox("Enter your name");
  console.log({name});

  var res = await whiptail.menu("Choose a stuff", choices);
  console.log({res});

  res = await whiptail.checklist("Choose anoter stuff", choices);
  console.log({res});

  res = await whiptail.checklist("Choose the last stuff", choices);
  console.log({res});

})();

Credits

Readme

Keywords

Package Sidebar

Install

npm i whiptail

Weekly Downloads

13

Version

2.0.4

License

ISC

Unpacked Size

9.86 kB

Total Files

5

Last publish

Collaborators

  • 131
  • frodon