native-file-dialog
v0.2.0
Published
node native file/floder dialog
Downloads
6
Readme
native-file-dialog
node native file/floder dialog.
基于rust的wfd crate封装的一个node可执行包,支持 Windows macOS,调用系统原生 文件/文件夹选择框。
只暴露两个function,用法非常清真。
Example
const nativeDialog = require('native-file-dialog')
const file_path = nativeDialog.file_dialog()
console.log(file_path) // path || UserCancelled
const folder_path = nativeDialog.folder_dialog()
console.log(folder_path) // path || UserCancelled