Use console.log when possible

This commit is contained in:
Carlos E Silva
2017-11-10 08:37:29 -05:00
parent 6bd205cabd
commit 49f1b89e30

View File

@ -171,9 +171,8 @@ function displayStoresAvailable(storesAvailable) {
); );
// Output the message. // Output the message.
process.stdout.write(`The device is currently available at ${storesAvailable.length} stores near you:`); console.log(`The device is currently available at ${storesAvailable.length} stores near you:`);
process.stdout.write(storesAvailableStr); console.log(storesAvailableStr);
process.stdout.write('\n');
} }
/** /**
@ -199,8 +198,8 @@ async function requestLoop() {
} }
// Display program started message. // Display program started message.
process.stdout.write('Starting program with the following settings:\n'); console.log('Starting program with the following settings:');
process.stdout.write(`${JSON.stringify(options, null, 2)}\n`); console.log(`${JSON.stringify(options, null, 2)}`);
// Update the display every second. // Update the display every second.
setInterval(() => { setInterval(() => {