Disable warnings for Node.js shell scripts

You can disable Node.js related warnings for programs launched via a shell script by removing the warning listeners using the process global i.e.

#! /usr/bin/env node

process.removeAllListeners('warning').

...

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.