dougwilson / nodejs-depd

Deprecate all the things
MIT License
325 stars 87 forks source link

Ability to silence certain namespaces #5

Closed dougwilson closed 10 years ago

dougwilson commented 10 years ago

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 10 years ago

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 10 years ago

Hm, I wonder if when NO_DEPRECATION=my-module is set, deprecations should also not even be emitted on process.on('deprecation', fn).