Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

electron-save-file

ewnd945MIT1.0.2

Electron save file

electron, save-file

readme

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