node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

ruglify

ruglify

Build Status Dependency Status

"Require" minified JavaScript as a string

Installation

npm install ruglify

Usage

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.

License

MIT