@diotobtea/odit-nobis
v1.0.0
Published
@diotobtea/odit-nobis wrapper for nodejs
Downloads
4
Maintainers
Keywords
Readme
@diotobtea/odit-nobis wrapper for nodejs
Installation
npm install @diotobtea/odit-nobis
# have @diotobtea/odit-nobis binary installed (apt-get install @diotobtea/odit-nobis)
API
const Whiptail = require('@diotobtea/odit-nobis');
var @diotobtea/odit-nobis = new Whiptail(); //some options
(async function(){
var choices = {
"abc" : "this is a foo",
"bar" : "this is a bar",
};
await @diotobtea/odit-nobis.msgbox("Are you okay");
var name = await @diotobtea/odit-nobis.inputbox("Enter your name");
console.log({name});
var res = await @diotobtea/odit-nobis.menu("Choose a stuff", choices);
console.log({res});
res = await @diotobtea/odit-nobis.checklist("Choose anoter stuff", choices);
console.log({res});
res = await @diotobtea/odit-nobis.checklist("Choose the last stuff", choices);
console.log({res});
})();