Download src/lib/syncLocalToSupabase.ts from HonzaH/Letschat: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/syncLocalToSupabase.ts
- Command line
-
hf download hf://spaces/HonzaH/Letschat/src/lib/syncLocalToSupabase.ts
-
curl -L -o syncLocalToSupabase.ts https://huggingface.co/spaces/HonzaH/Letschat/resolve/main/src/lib/syncLocalToSupabase.ts
326 Bytes
| import { syncLocalToSupabase } from './persistence' | |
| export async function runSync() { | |
| return syncLocalToSupabase() | |
| } | |
| if (require.main === module) { | |
| runSync().then(r => { | |
| console.log('Sync result', r) | |
| process.exit(0) | |
| }).catch(e => { | |
| console.error('Sync failed', e) | |
| process.exit(1) | |
| }) | |
| } | |