Client side atproto account migrator in your web browser, along with services for backups and adversarial migrations. pdsmoover.com
pds atproto migrations moo cow
at next 538 B view raw
1class MooverUtils { 2 formatDate(value) { 3 if (!value) return '—'; 4 try { 5 const d = new Date(value); 6 return d.toLocaleString(); 7 } catch (err) { 8 console.error(err); 9 return String(value); 10 } 11 } 12 13 formatBytes(bytes) { 14 if (bytes == null) return '—'; 15 const units = ['B', 'KB', 'MB', 'GB', 'TB']; 16 let i = 0; 17 let v = Number(bytes); 18 while (v >= 1024 && i < units.length - 1) { 19 v /= 1024; 20 i++; 21 } 22 return v.toFixed(1) + ' ' + units[i]; 23 } 24 25} 26 27 28export {MooverUtils};