process.binding() is an internal API of Node, and
its use should be avoided.
Modern versions of Node have constants properties
on the individual public modules, so using these
and falling back to the process.binding() path
ensures that this module is unaffected by
changes to Node’s internals.
process.binding()
is an internal API of Node, and its use should be avoided.Modern versions of Node have
constants
properties on the individual public modules, so using these and falling back to theprocess.binding()
path ensures that this module is unaffected by changes to Node’s internals.