BSD Ports

www/yuicompressor 2.4.8_2 MidnightBSD

The Yahoo! JavaScript and CSS Compressor

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3, MPL20
Categories
www, java

Description

YUI Compressor is JavaScript and CSS minificator.

YUI Compressor is written in Java and relies on Rhino to tokenize the source JavaScript file. It starts by analyzing the source JavaScript file to understand how it is structured. It then prints out the token stream, omitting as many white space characters as possible, and replacing all local symbols by a 1 (or 2, or 3) letter symbol wherever such a substitution is appropriate (in the face of evil features such as eval or with, the YUI Compressor takes a defensive approach by not obfuscating any of the scopes containing the evil statement).

The CSS compression algorithm uses a set of finely tuned regular expressions to compress the source CSS file. The YUI Compressor is open-source, so don't hesitate to look at the code to understand exactly how it works.

In the other systems

The newest version among them is 2.4.8, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDwww/yuicompressor2.4.8_2 newestno data-[email protected]-
FreeBSDwww/yuicompressor2.4.8_5 newestnone known-[email protected]-
DragonFlywww/yuicompressor2.4.8_3 newestnone known-[email protected]-
HardenedBSDwww/yuicompressor2.4.8_5 newestno data-[email protected]-
GhostBSDwww/yuicompressor2.4.8_5 newestno data-[email protected]-

Install

Binary package:

mport install yuicompressor

From mports:

cd /usr/mports/www/yuicompressor && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	yuicompressor>0:www/yuicompressor

Dependencies

No port depends on this one.

Configuration

No options to configure.

USES
java
Service scripts
none

Files

distinfo 1
FileSizeSHA256
yuicompressor-2.4.8.jar786897852cea60054a4b5c58fee4bc1e8c48551e6ff6bb45803ce86400bcf607d304ed
Master sites 1
  • FREEBSD_LOCAL/az