node module for windows native UI utilities
> # npm i windows-native-ui
> yarn add windows-native-ui
const winUI = require('windows-native-ui')
const test = async () => {
// messagebox info
console.log(await winUI.dialog.info('title', 'hello world, 你好世界'));
// messagebox ok & cancel
console.log(await winUI.dialog.okCancel('title', 'hello world, 请选择'));
// open file dialog
console.log(await winUI.dialog.openfile('C:/Program Files (x86)', '*.exe'));
// save as file dialog
console.log(await winUI.dialog.savefile('C:/Program Files (x86)', '*.*'));
// select a directory
console.log(await winUI.dialog.selectdir("请选择目录", 'C:/Program Files (x86)'));
}
test();