⚡ Zero-dependency plcbundle library exclusively for Bun

use global install

Changed files
+44 -12
+41 -9
README.md
··· 23 24 ## Installation 25 26 ```bash 27 bun install 28 ``` 29 ··· 31 32 ```bash 33 # Clone bundles from remote repository 34 - bun src/cli.ts clone --remote https://plcbundle.atscan.net 35 36 # Clone specific range with multiple threads 37 - bun src/cli.ts clone --remote https://plcbundle.atscan.net --bundles 1-100 --threads 8 38 39 # Show repository info 40 - bun src/cli.ts info --dir ./bundles 41 42 # Detect/filter operations with custom function 43 - bun src/cli.ts detect --detect ./examples/detect.ts --dir ./bundles 44 45 # Detect with range and threads 46 - bun src/cli.ts detect --detect ./detect.ts --bundles 1-50 --threads 4 47 48 # Verify bundle integrity 49 - bun src/cli.ts verify --bundle 42 --dir ./bundles 50 51 # Export operations from bundle 52 - bun src/cli.ts export --bundle 1 --dir ./bundles > ops.jsonl 53 ``` 54 55 ## Library Usage 56 57 ```typescript 58 - import { PLCBundle } from './src'; 59 60 // Initialize 61 const bundle = new PLCBundle('./bundles'); ··· 118 Then use it: 119 120 ```bash 121 - bun src/cli.ts detect --detect ./detect.ts 122 ``` 123 124 ## Why Bun?
··· 23 24 ## Installation 25 26 + ### Global Installation (CLI) 27 + 28 ```bash 29 + bun i -g @atscan/plcbundle-bun 30 + ``` 31 + 32 + After global installation, the `plcbundle-bun` command is available: 33 + 34 + ```bash 35 + plcbundle-bun --help 36 + ``` 37 + 38 + ### Library Installation 39 + 40 + ```bash 41 + bun add @atscan/plcbundle-bun 42 + ``` 43 + 44 + ### Development 45 + 46 + ```bash 47 + git clone https://tangled.org/@atscan.net/plcbundle-bun 48 + cd plcbundle-bun 49 bun install 50 ``` 51 ··· 53 54 ```bash 55 # Clone bundles from remote repository 56 + plcbundle-bun clone --remote https://plcbundle.atscan.net 57 58 # Clone specific range with multiple threads 59 + plcbundle-bun clone --remote https://plcbundle.atscan.net --bundles 1-100 --threads 8 60 61 # Show repository info 62 + plcbundle-bun info --dir ./bundles 63 64 # Detect/filter operations with custom function 65 + plcbundle-bun detect --detect ./examples/detect.ts --dir ./bundles 66 67 # Detect with range and threads 68 + plcbundle-bun detect --detect ./detect.ts --bundles 1-50 --threads 4 69 70 # Verify bundle integrity 71 + plcbundle-bun verify --bundle 42 --dir ./bundles 72 73 # Export operations from bundle 74 + plcbundle-bun export --bundle 1 --dir ./bundles > ops.jsonl 75 + ``` 76 + 77 + ### Development CLI Usage 78 + 79 + When developing locally, run commands directly: 80 + 81 + ```bash 82 + bun src/cli.ts clone --remote https://plcbundle.atscan.net 83 + bun src/cli.ts info --dir ./bundles 84 + bun src/cli.ts detect --detect ./examples/detect.ts 85 ``` 86 87 ## Library Usage 88 89 ```typescript 90 + import { PLCBundle } from "@atscan/plcbundle-bun"; 91 92 // Initialize 93 const bundle = new PLCBundle('./bundles'); ··· 150 Then use it: 151 152 ```bash 153 + plcbundle-bun detect --detect ./detect.ts 154 ``` 155 156 ## Why Bun?
+1 -1
jsr.json
··· 1 { 2 "name": "@atscan/plcbundle-bun", 3 - "version": "0.9.1", 4 "license": "MIT", 5 "exports": "./src/index.ts" 6 }
··· 1 { 2 "name": "@atscan/plcbundle-bun", 3 + "version": "0.9.2", 4 "license": "MIT", 5 "exports": "./src/index.ts" 6 }
+2 -2
package.json
··· 1 { 2 "name": "@atscan/plcbundle-bun", 3 - "version": "0.9.1", 4 "type": "module", 5 "description": "Bun library for working with DID PLC bundle archives (plcbundle)", 6 "main": "./src/index.ts", 7 "bin": { 8 - "plcbundle": "./src/cli.ts" 9 }, 10 "exports": { 11 ".": "./src/index.ts"
··· 1 { 2 "name": "@atscan/plcbundle-bun", 3 + "version": "0.9.2", 4 "type": "module", 5 "description": "Bun library for working with DID PLC bundle archives (plcbundle)", 6 "main": "./src/index.ts", 7 "bin": { 8 + "plcbundle-bun": "./src/cli.ts" 9 }, 10 "exports": { 11 ".": "./src/index.ts"