I have a node module that watches for events.
sassWatcher
.on('init', () => sasstoCSS(prod, config, sassPath))
.on('update', () => sasstoCSS(prod, config, sassPath))
I'd make it one line. So it's like:
sassWatcher
.on('init' || 'update', () => sasstoCSS(prod, config, sassPath))
Is there a way to do this in Node.js, regardless of the library? Putting the two events in an array doesn't seem to work.