Skip to content

Instantly share code, notes, and snippets.

View danielroe's full-sized avatar
🏠

Daniel Roe danielroe

🏠
View GitHub Profile
import fs from 'node:fs'
import { fileURLToPath } from 'node:url'
import path from 'node:path'
import pkg from '../packages.json' assert { type: 'json' }
const source = process.argv[2] || 'names.txt'
const names = fs.readFileSync(fileURLToPath(new URL(path.join('data', source), import.meta.url)), 'utf-8').split('\n')
const resumeFrom = process.argv[3]
let resumed = !resumeFrom