mirror of
https://github.com/kmitresse/Compo-Service-Log-Project.git
synced 2026-07-09 12:07:45 +00:00
feat: Use MongoDB to save the datalake
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { Duplex } from "node:stream";
|
||||
import Extractor from "./Extractor";
|
||||
import { ParseOne } from "unzipper";
|
||||
|
||||
export default class ZipExtractor implements Extractor {
|
||||
public static instance: ZipExtractor = new ZipExtractor();
|
||||
|
||||
public extract(options: { file: string }): Duplex {
|
||||
return ParseOne(new RegExp(options.file), {
|
||||
forceStream: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user