Skip to content

operali/node-windows-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

window native UI utilities nodejs module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published