Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
578 B
TypeScript
22 lines
578 B
TypeScript
import { writeFileSync } from 'fs'
|
|
import { initAdmin } from 'shared/init-admin'
|
|
initAdmin()
|
|
import { PrivateUser } from 'common/user'
|
|
import { getAllPrivateUsers } from 'shared/utils'
|
|
|
|
async function main() {
|
|
const users = await getAllPrivateUsers()
|
|
console.log('Loaded', users.length, 'users')
|
|
const csv = users.map((user: PrivateUser) => {
|
|
if (!user.email) return ''
|
|
return `${user.email}`
|
|
})
|
|
try {
|
|
writeFileSync('emails.csv', csv.join(','))
|
|
} catch (err) {
|
|
console.error(err)
|
|
}
|
|
}
|
|
|
|
if (require.main === module) main().then(() => process.exit())
|