Use console.log when possible
This commit is contained in:
9
index.js
9
index.js
@ -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(() => {
|
||||||
|
Reference in New Issue
Block a user