Softpedia
 


SCRIPTS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Koken 0.8.4
  • ContentBox 1.5.2
  • jQPlayer 0.5.2
  • SPOILER ALERT! 0.0.2
  • jQuery Mask Plugin 0.9.0
  • Easing Slider 2.1.2
  • Btapp.js 0.2.0
  • WiiFlash 0.4.5
  • Breeze.js 1.3.3
  • TinyMCE Templates 3.0.2
  • Home > Scripts > Development Tools > Complete applications

    The JavaScript Minifier

    Softpedia Pick Award
    download button


    Downloads: 1,123  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.5/5)
    20 user(s)
    Developer:

    Website:

    License / Price:

    Platforms:

    Databases:

    Language:

    Last Updated:

    Category:
    Douglas Crockford | More scripts
    www.crockford.com
    MIT License 

    Windows / Linux / Mac OS / BSD / Solaris
    N/A
    C/C++
    July 18th, 2007, 12:41 GMT
    C: \ Development Tools \ Complete applications

     Read user reviews (0)  Refer to a friend  Subscribe

    The JavaScript Minifier description

    This is a filter which removes comments and unnecessary whitespace from JavaScript files

    It typically reduces filesize by half, resulting in faster downloads. It also encourages a more expressive programming style because it eliminates the download cost of clean, literate self-documentation.

    JSMin is a filter that omits or modifies some characters. This does not change the behavior of the program that it is minifying. The result may be harder to debug. It will definitely be harder to read.

    JSMin first replaces carriage returns ('') with linefeeds (''). It replaces all other control characters (including tab) with spaces. It replaces comments in the // form with linefeeds. It replaces comments in the /* */ form with spaces. All runs of spaces are replaced with a single space. All runs of linefeeds are replaced with a single linefeed.

    It omits spaces except when a space is preceded or followed by a non-ASCII character or by an ASCII letter or digit, or by one of these characters:

    $ _

    It is more conservative in omitting linefeeds, because linefeeds are sometimes treated as semicolons. A linefeed is not omitted if it precedes a non-ASCII character or an ASCII letter or digit or one of these characters:

    $ _ { [ ( -

    and if it follows a non-ASCII character or an ASCII letter or digit or one of these characters:

    $ _ } ] ) - " '

    No other characters are omitted or modified.

    JSMin knows to not modify quoted strings and regular expression literals.

    JSMin does not obfuscate code, but does make it un-readable.

    The tool is available in multiple programming languages.



    TAGS:

    compress file | minify file | development tool | minify | compress | code

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM