Skip to content

Instantly share code, notes, and snippets.

View cjmaxik's full-sized avatar
🤦‍♂️

CJMAXiK cjmaxik

🤦‍♂️
View GitHub Profile
@tvaliasek
tvaliasek / main.js
Created June 5, 2018 20:09
electron axios stream download with progress
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