Open mhkeller opened 4 years ago
Whenever I use a write function, I also write a notifier since it's nice to be able to see a script's output in the console.
I pretty much always use this three-line pattern:
const outPath = path.join(outDir, `file.csv`); io.writeDataSync(outPath, data, { makeDirs: true }); notify({ m: 'Wrote...', v: outPath, d: 'green' });
I use the wsk-notify package. It would be useful to have a { notify: true } option in write functions and perhaps notifyOptions that would get passed to the notify function.
{ notify: true }
notifyOptions
notify
Whenever I use a write function, I also write a notifier since it's nice to be able to see a script's output in the console.
I pretty much always use this three-line pattern:
I use the wsk-notify package. It would be useful to have a
{ notify: true }
option in write functions and perhapsnotifyOptions
that would get passed to thenotify
function.