Just recently, the following tool from Google’s v8 project was pointed out to me: jsmin.py. This implementation does not carry the problematic license. Instead it’s under the New BSD license like the rest of v8. This is exciting as there’s now the potential for people to port their projects from the non-free code to this implementation which makes life easier for free software developers.
At a quick glance, it seems different to the one used by OpenLayers:
This one was judged unacceptable in Fedora since it appears to be a rewrite in Python of the original jsmin tool in which the author of the Python script simply looked at the C code and translated it to Python:
If the one from V8 is really a clean room implementation, that’s very interesting indeed!
This tool will hopefully be in Fedora shortly, the package is being reviewed.
It should be noted, though, that it’s not as good as the jsmin original right now : it can apparently mangle valid code.
A couple more solutions:
Thanks! I didn’t know about the Perl module!