node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hijack

Stub Node.js module Build Status

Stub Node.js module.

Installation

npm install hijack

Example

var hijacked = hijack.require('util');
 
hijacked.replace('log', function(message) {
    console.log('I am hijacked [' + message + ']!');
});
 
util.log('Timestamped message.');
 
hijack.restore();