Skip to content
Νative windows dialog boxes for Node.js 🕶
Branch: master
Clone or download
Latest commit 38e55a2 Mar 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src uesd es8 instead of promises, switched argument positions, made it pr… Dec 28, 2017
.babelrc uesd es8 instead of promises, switched argument positions, made it pr… Dec 28, 2017
.editorconfig uesd es8 instead of promises, switched argument positions, made it pr… Dec 28, 2017
.gitignore v0.1.3 Dec 15, 2017
README.md Remove dependencies Mar 1, 2019
package.json Update dependency babel-preset-env to v1.7.0 Mar 1, 2019

README.md

Mitsobox 📦

npm version Contributions welcome License

Basic Overview

Mitsobox is a library for nodeJS scripts that calls native win32 API directly, to show dialog boxes. In simpler words, it creates a message box using native windows services (Yeah it's only for windows 😝).



Install with yarn

yarn add mitsobox

Install with npm

npm i mitsobox --save

Usage

const mitsobox = require('mitsobox');

// Display a messagebox only with OK key
mitsobox.ok("The coolest title ever", "The content");

// Display a messagebox with OK - CANCEL keys, then get response
mitsobox.okCancel("Another cool title", "Another cool content").then(function (action) {
  console.log(action); // 'OK' or 'CANCEL'
});

// Display a messagebox with ABORT - RETRY - IGNORE keys, then get response
mitsobox.abortRetryIgnore("Breaking news!", "Nasa has confirmed that the earth is FLAT").then(function (action){
  console.log(action); // 'ABORT' or  'RETRY' or 'IGNORE'
});

You can’t perform that action at this time.