1 2 3 4 5 6 7 8 9 10 11 12
'use strict'; // Buffer instance methods are exported as 'buf'. function Buffer() { } Buffer.prototype.instanceMethod = function() {} module.exports = { Buffer };