qrequire
A node utility to improve node module require time using cache particularly for npm2 which may exists repeated module dependencies
How to use
Install
npm install qrequire --save
Usage
var qrequire = require('qrequire');qrequire.hook();// require the module you wanna speed upqrequire.unhook();
Example
When you using babel 6 in npm2, the first compile time is too slow, you can use qrequire
to speed up the compile time:
qrequire;console;var babel = ;var result = babel;console;console; // you can check the consume time change by yourselfqrequire;
Limit
Ignore the situation that has the same version dependency with the different implementation.