1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-rjsmin
7 SDESC[py38]= Javascript Minifier (PY38)
8 SDESC[py39]= Javascript Minifier (PY39)
9 HOMEPAGE= http://opensource.perlig.de/rjsmin/
10 CONTACT= Python_Automaton[python@ironwolf.systems]
13 SITES[main]= PYPI/r/rjsmin
14 DISTFILE[1]= rjsmin-1.2.0.tar.gz:main
19 OPTIONS_AVAILABLE= PY38 PY39
20 OPTIONS_STANDARD= none
21 VOPTS[py38]= PY38=ON PY39=OFF
22 VOPTS[py39]= PY38=OFF PY39=ON
24 DISTNAME= rjsmin-1.2.0
28 [PY38].USES_ON= python:py38,sutools
30 [PY39].USES_ON= python:py39,sutools
32 [FILE:2765:descriptions/desc.single]
37 rJSmin is a javascript minifier written in python.
39 The minifier is based on the semantics of `jsmin.c by Douglas Crockford`_\.
41 The module is a re-implementation aiming for speed, so it can be used at
42 runtime (rather than during a preprocessing step). Usually it produces the
43 same results as the original ``jsmin.c``. It differs in the following ways:
45 - there is no error detection: unterminated string, regex and comment
46 literals are treated as regular javascript code and minified as such.
47 - Control characters inside string and regex literals are left untouched;
49 are not converted to spaces (nor to \n)
50 - Newline characters are not allowed inside string and regex literals,
52 for line continuations in string literals (ECMA-5).
53 - "return /regex/" is recognized correctly.
54 - More characters are allowed before regexes.
55 - Line terminators after regex literals are handled more sensibly
56 - "+ +" and "- -" sequences are not collapsed to '++' or '--'
57 - Newlines before ! operators are removed more sensibly
58 - (Unnested) template literals are supported (ECMA-6)
59 - Comments starting with an exclamation mark (``!``) can be kept optionally
60 - rJSmin does not handle streams, but only complete strings. (However, the
61 module provides a "streamy" interface).
63 Since most parts of the logic are handled by the regex engine it's way
65 than the original python port of ``jsmin.c`` by Baruch Even. The speed
67 varies between about 6 and 55 depending on input and python version (it
69 faster the more compressed the input already is). Compared to the
70 speed-refactored python port by Dave St.Germain the performance gain is
72 dramatic but still between 3 and 50 (for huge inputs)). See the
73 docs/BENCHMARKS file for details.
75 rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even
78 Supported python versions are 2.7 and 3.6+.
80 .. _jsmin.c by Douglas Crockford:
81 http://www.crockford.com/javascript/jsmin.c
87 André Malo or his licensors, as applicable.
89 The whole package (except for the files in the bench/ directory) is
90 distributed under the Apache License Version 2.0. You'll find a copy in the
91 root directory of the distribution or online at:
92 <http://www.apache.org/licenses/LICENSE-2.0>.
97 No bugs, of course. ;-)
98 But if you've found one or have an idea how to improve rjsmin, feel free
99 to send a pull request on [github]
100 or send a mail to <rjsmin-bugs@perlig.de>.
105 André "nd" Malo <nd perlig.de>
106 GPG: 0x029C942244325167
108 If God intended people to be naked, they would be born that way.
111 .. vim:tw=72 syntax=rest
115 6c529feb6c400984452494c52dd9fdf59185afeacca2afc5174a28ab37751a1b 419866 rjsmin-1.2.0.tar.gz