I usually prefer a wrapping method like https://github.com/joyent/node/blob/master/lib/util.js#L65 so you don't have to change the implementation.