Skip to Content

Variable DEPRECATION_WARNING_NAMEConst

DEPRECATION_WARNING_NAME: "MemcoDeprecationWarning" = 'MemcoDeprecationWarning'

The type every notice is emitted under, and the name it arrives with.

Node prints it ahead of the text and passes it as the warning's name, which is what lets a caller filter these out with a process.on('warning') handler without also silencing Node's own.

Exported because a caller who cannot name this has to hard-code the string to filter on it.