Skip to content

Instantly share code, notes, and snippets.

@harrietty
Last active July 9, 2018 20:34
Show Gist options
  • Save harrietty/314e705d8c98dcdaa2a20512fb66a22c to your computer and use it in GitHub Desktop.
Save harrietty/314e705d8c98dcdaa2a20512fb66a22c to your computer and use it in GitHub Desktop.
const fs = require('fs');
const zlib = require('zlib');
const fileContents = fs.createReadStream('./data/file1.txt.gz');
console.log(fileContents);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment