1.0.1 • Published 3 years ago

macos-open-file-dialog v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

MacOS Open File Dialog

To install the utility use npm

npm i macos-open-file-dialog

You can then import and use the async utilities:

const { openFile, openFolder } = require("macos-open-file-dialog")

const filePath = await openFile("Select a file")
const imagePath = await openFile("Select a photo", ["jpg", "jpeg", "png"])

const folderPath = await openFolder("Select a folder")