how to read files without fs
I have code like this to run all sql migeration files:
given fs is not available, how can i accomplish the same.
given fs is not available, how can i accomplish the same.
const dir = new URL('migrations', import.meta.url);
for (const file of fs.readdirSync(dir)) {}