#not able to get JSON data outside the fs.readFile()
21 messages · Page 1 of 1 (latest)
how did you define fs?
oh wait nvm
misread
that fs is the callback async version, you can't extract data out of it
yeah you're not supposed to
read through this to get an idea of promise async first
Will do
then you can use fs' promise api
I have to download util package ?
no