chore: update public repo

This commit is contained in:
desu-bot 2025-04-27 22:31:46 +00:00
parent ce9f435ef2
commit 96426d01c1
No known key found for this signature in database

View file

@ -0,0 +1,17 @@
import { asyncPool } from '@fuman/utils'
import { argv, question } from 'zx'
import { counterIter } from '../../utils/counter.ts'
const url = argv[1] || await question('url > ')
const count = argv[2] || await question('count > ')
const counter = counterIter(0, count)
await asyncPool(counter.iter, async (i) => {
if (i % 100 === 0) {
console.log('currently at %d', i)
}
await fetch(url)
})
console.log('nakrutka done')