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:
2026-01-01 23:09:06 +00:00
parent 4e3c5a8443
commit 6393527c95
37 changed files with 2850 additions and 5105 deletions

22
ts_shared/plugins.ts Normal file
View File

@@ -0,0 +1,22 @@
// Browser-compatible plugins for ts_shared
// NO Node.js imports allowed here
// @push.rocks scope (browser-compatible)
import * as smartdelay from '@push.rocks/smartdelay';
import * as smartpromise from '@push.rocks/smartpromise';
import * as smartstream from '@push.rocks/smartstream';
import * as smartfile from '@push.rocks/smartfile';
export {
smartdelay,
smartpromise,
smartstream,
smartfile,
};
// third party scope (browser-compatible)
import * as fileType from 'file-type';
import * as fflate from 'fflate';
import * as modernTar from 'modern-tar';
export { fileType, fflate, modernTar };