windows-native-ui
v0.1.2
Published
node module for windows native UI utilities
Downloads
4
Maintainers
Readme
windows-native-ui
node module for windows native UI utilities
install
> # npm i windows-native-ui
> yarn add windows-native-ui
usage
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();