This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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 |