Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add notify option to write functions #92

Open
mhkeller opened this issue May 28, 2020 · 0 comments
Open

Add notify option to write functions #92

mhkeller opened this issue May 28, 2020 · 0 comments

Comments

@mhkeller
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant