Miss any of our Open RFC calls?Watch the recordings here! »

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

Install

npm i electron-save-file

DownloadsWeekly Downloads

13

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar