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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    22
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    22
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i electron-save-file

Weekly Downloads

8

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ewnd9