how to read files without fs

I have code like this to run all sql migeration files:
const dir = new URL('migrations', import.meta.url);

for (const file of fs.readdirSync(dir)) {}
const dir = new URL('migrations', import.meta.url);

for (const file of fs.readdirSync(dir)) {}
given fs is not available, how can i accomplish the same.
1 Reply
bjorn
bjorn13mo ago
@identity Sorry for buzzing you. Came to the same issue today. Did you already have a workaround?
Want results from more Discord servers?
Add your server