native-kde-file-open

0.0.4 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i native-kde-file-open

Weekly Downloads

5

Version

0.0.4

License

MIT

Last publish

Collaborators

  • codebytere