mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
feat: Stream download, extract and parse datasets
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { createGunzip } from "node:zlib";
|
||||
import { Duplex } from "node:stream";
|
||||
import { Archive } from "./";
|
||||
|
||||
class GzipArchive implements Archive {
|
||||
public static instance: Archive = new GzipArchive();
|
||||
|
||||
public extract(source: string): Duplex {
|
||||
return createGunzip();
|
||||
}
|
||||
}
|
||||
export default GzipArchive;
|
||||
Reference in New Issue
Block a user