Saturday, 14 April 2018

Run node synchronously

This may be a very stupid and backwards question, but is there a way to make node explicitly synchronous, as in like plain web based JS? In the project that i'm working on, i'm using node specifically for the CLI and no other reason. My program has very little async operations, but it's comprised primarily of functions spread out over a few files, that are designed to run one after another, and trying to deal with all the unnecessary callbacks and promises has been an absolute nightmare.

Submitted April 15, 2018 at 02:20AM by captainXcannabis

No comments:

Post a Comment