I wrote this little function to extract a file from a .tar.gz file:
.tar.gz
import {extract as createTarExtract} from \'tar-stream\' import FS from \'fs\