-
gzip-stream is a Transform stream to read gzip file member by member.
-
npm install git+https://github.com/Vikasg7/gzip-stream.git
-
import { createReadStream } from "graceful-fs" import { get } from "request" import { GzipStream } from "gzip-stream" const file = process.argv[2] const reader = file.startsWith("http") ? get(file) : createReadStream(file) const gzip = new GzipStream() let i = 0 reader .pipe(gzip) .on("data", (member) => console.log(member)) .pipe(process.stdout)
-
Check the tests folder in src folder for an example.
-
Notifications
You must be signed in to change notification settings - Fork 0
Vikasg7/gzip-stream
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Transfrom stream to read a gzip file member by member in nodejs
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published