npm install ruglify
var ruglify = require('ruglify');var minifiedJQuery = ruglify('./jquery.js');console.log(minifiedJQuery);
Uses the same resolution algorithm as require for maximum simplicity. Built on top of rfile.
how? learn more