0.0.4 • Published 7 years ago
native-kde-file-open v0.0.4
Native KDE File Open
This module allows for the opening of a native file window in KDE distributions, and is intended for use in Electron applications until a full fix has been created for this issue.
To use:
const nativePicker = require('native-kde-file-open');
// to open single file or multiple files, with promise
nativePicker.openFile().then(ret =>{
console.log(ret);
});
// to open single file or multiple files, with callback
nativePicker.openFile((err, ret) =>{
console.log(ret);
});
// to save single file or multiple files, with promise
nativePicker.saveFile().then(ret =>{
console.log(ret);
});
// to save single file or multiple files, with callback
nativePicker.saveFile((err, ret) =>{
console.log(ret);
});