electron-save-file

1.0.2 • Public • Published

electron-save-file

Save file function for electron.

Handle both remote and local links and auto-detect file extensions via file-type module

Install

$ npm install electron-save-file --save

Usage

// in renderer
const saveFile = require('remote').require('electron-save-file');
saveFile('<path>') // should begins with 'http' or 'file://' or '/'
  .then(() => console.log('saved'))
  .catch(err => console.error(err.stack));

Acknowledgement

License

MIT © ewnd9

Readme

Keywords

Package Sidebar

Install

npm i electron-save-file

Weekly Downloads

15

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ewnd9