Ability to silence certain namespaces
Closed this issue · 2 comments
dougwilson commented
It would be nice to be able to silence certain namespaces, probably through an environment variable (like DEBUG
). Possible interface:
$ NO_DEPRECATION=my-module,other-module node my_script.js
Should this module honor Node.js core's --no-deprecation
argument to silence everything?
dougwilson commented
Even though this module is awesome, I do need this feature before integrating it into connect
/express
so people can easily do NO_DEPRECATION=connect node app.js
if they really wanted.
dougwilson commented
Hm, I wonder if when NO_DEPRECATION=my-module
is set, deprecations should also not even be emitted on process.on('deprecation', fn)
.