mishoo/UglifyJS2 — pull request #77 by dsimard (2012-12-27 16:03:50+00:00)
Title: Better require

The README file contains this :

var UglifyJS = require("uglify-js");

It doesn't work in Node.js so I added a `main` into the `package.json` and also a `index.js` at the root of the project.

It is now possible to require it as a node module :

var UglifyJS = require("./node_modules/uglify-js");