⚡ Zero-dependency plcbundle library exclusively for Bun
at main 948 B view raw
1/** 2 * plcbundle - Zero-dependency library for working with PLC bundle archives 3 * 4 * This module provides a Bun-native implementation for reading, processing, 5 * and cloning PLC (Placeholder DID) bundle archives. It leverages Bun's native 6 * features for optimal performance. 7 * 8 * @example 9 * ```ts 10 * import { PLCBundle } from "@yourscope/plcbundle-bun"; 11 * 12 * // Create bundle instance 13 * const bundle = new PLCBundle("./bundles"); 14 * 15 * // Clone from remote 16 * await bundle.clone("https://plcbundle.atscan.net", { 17 * bundles: "1-100", 18 * threads: 8 19 * }); 20 * 21 * // Process operations 22 * await bundle.processBundles(1, 10, (op, pos, num) => { 23 * console.log(op.did); 24 * }); 25 * ``` 26 * 27 * @module 28 */ 29 30export { PLCBundle } from './plcbundle'; 31export type { 32 BundleIndex, 33 BundleMetadata, 34 Operation, 35 ProcessCallback, 36 ProcessStats, 37 ProcessOptions, 38 CloneOptions, 39 CloneStats, 40 ChainVerificationResult, 41} from './types';