feat(archive): introduce ts_shared browser-compatible layer, refactor Node-specific tools to wrap/shared implementations, and modernize archive handling
This commit is contained in:
14
ts_shared/classes.bzip2tools.ts
Normal file
14
ts_shared/classes.bzip2tools.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import * as plugins from './plugins.js';
|
||||
import { unbzip2Stream } from './bzip2/index.js';
|
||||
|
||||
/**
|
||||
* BZIP2 decompression utilities (browser-compatible)
|
||||
*/
|
||||
export class Bzip2Tools {
|
||||
/**
|
||||
* Get a streaming decompression transform
|
||||
*/
|
||||
getDecompressionStream(): plugins.smartstream.SmartDuplex<Uint8Array, Uint8Array> {
|
||||
return unbzip2Stream();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user