I'm simply using require at a couple places to load JSON tasks/variables. This has the disadvantage of being synchronous, and although its unlikely that a task list will be very big, it's possible. I should instead use either fs.readFile or JSON.parse to load these files asynchronously.
I'm simply using
require
at a couple places to load JSON tasks/variables. This has the disadvantage of being synchronous, and although its unlikely that a task list will be very big, it's possible. I should instead use eitherfs.readFile
orJSON.parse
to load these files asynchronously.