ruglify

'Require' minified JavaScript as a string

ruglify

"Require" minified JavaScript as a string

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.

MIT