1.0.2 • Published 8 years ago

electron-save-file v1.0.2

Weekly downloads
12
License
MIT
Repository
github
Last release
8 years ago

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