npm

windows-native-ui
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

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

Package Sidebar

Install

npm i windows-native-ui

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

12.7 kB

Total Files

6

Last publish

Collaborators

  • operali