Skip to content

Instantly share code, notes, and snippets.

Working from home

CJMAXiK cjmaxik

Working from home
View GitHub Profile
tvaliasek / main.js
Created Jun 5, 2018
electron axios stream download with progress
View main.js
import {ipcMain} from 'electron'
const fs = require('fs')
const axios = require('axios')
/* ... */
ipcMain.on('downloadFile', function (event, data) {
const filePath = data.filePath
const item = data.item