Skip to content

Instantly share code, notes, and snippets.

View FennNaten's full-sized avatar

Damien Lebreuilly FennNaten

View GitHub Profile
@FennNaten
FennNaten / image-queue.js
Last active July 10, 2017 01:09 — forked from sararob/image-queue.js
updating https://gist.github.com/sararob/275b252d1eda3a5baa27d6464d2f2198 to add example of reducing memory usage by using file streams
'use strict';
/**
* this is a fork of https://gist.github.com/sararob/275b252d1eda3a5baa27d6464d2f2198
* with some code added to show how reading from and writing to the big source and destination files
* can be done with streams to reduce memory pressure
* code added is there as an example to illustrate the principles involved and is not tested, so it may contains bugs
*/
// Dependencies