Open output of node script in less with javascript code
I am viewing the output of a node script like
node script.js | less -S -R
I'm wondering if there's a way to do this from within the javascript file itself, so that people do have to worry about writing the pipe, and can just run node script.js