JSPM

windows-native-ui

0.1.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q28098F
  • License MIT

Package Exports

  • windows-native-ui

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (windows-native-ui) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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