1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
3 NAMEBASE= python-rjsmin
5 KEYWORDS= python devel textproc
6 VARIANTS= py27 py36 py37
7 SDESC[py36]= Javascript Minifier (PY 36)
8 SDESC[py37]= Javascript Minifier (PY 37)
9 SDESC[py27]= Javascript Minifier (PY 27)
10 HOMEPAGE= http://opensource.perlig.de/rjsmin/
11 CONTACT= Python_Automaton[python@ironwolf.systems]
14 SITES[main]= PYPI/r/rjsmin
15 DISTFILE[1]= rjsmin-1.1.0.tar.gz:main
21 OPTIONS_AVAILABLE= PY27 PY36 PY37
22 OPTIONS_STANDARD= none
23 VOPTS[py36]= PY27=OFF PY36=ON PY37=OFF
24 VOPTS[py37]= PY27=OFF PY36=OFF PY37=ON
25 VOPTS[py27]= PY27=ON PY36=OFF PY37=OFF
27 DISTNAME= rjsmin-1.1.0
31 [PY36].USES_ON= python:py36
33 [PY37].USES_ON= python:py37
35 [PY27].USES_ON= python:py27
37 [FILE:2800:descriptions/desc.single]
42 rJSmin is a javascript minifier written in python.
44 The minifier is based on the semantics of `jsmin.c by Douglas Crockford`_\.
46 The module is a re-implementation aiming for speed, so it can be used at
47 runtime (rather than during a preprocessing step). Usually it produces the
48 same results as the original ``jsmin.c``. It differs in the following ways:
50 - there is no error detection: unterminated string, regex and comment
51 literals are treated as regular javascript code and minified as such.
52 - Control characters inside string and regex literals are left untouched;
54 are not converted to spaces (nor to \n)
55 - Newline characters are not allowed inside string and regex literals,
57 for line continuations in string literals (ECMA-5).
58 - "return /regex/" is recognized correctly.
59 - More characters are allowed before regexes.
60 - Line terminators after regex literals are handled more sensibly
61 - "+ +" and "- -" sequences are not collapsed to '++' or '--'
62 - Newlines before ! operators are removed more sensibly
63 - (Unnested) template literals are supported (ECMA-6)
64 - Comments starting with an exclamation mark (``!``) can be kept optionally
65 - rJSmin does not handle streams, but only complete strings. (However, the
66 module provides a "streamy" interface).
68 Since most parts of the logic are handled by the regex engine it's way
70 than the original python port of ``jsmin.c`` by Baruch Even. The speed
72 varies between about 6 and 55 depending on input and python version (it
74 faster the more compressed the input already is). Compared to the
75 speed-refactored python port by Dave St.Germain the performance gain is
77 dramatic but still between 3 and 50 (for huge inputs)). See the
78 docs/BENCHMARKS file for details.
80 rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even
83 Supported python versions are 2.7 and 3.4+.
85 .. _jsmin.c by Douglas Crockford:
86 http://www.crockford.com/javascript/jsmin.c
93 André Malo or his licensors, as applicable.
95 The whole package (except for the files in the bench/ directory) is
96 distributed under the Apache License Version 2.0. You'll find a copy in the
97 root directory of the distribution or online at:
98 <http://www.apache.org/licenses/LICENSE-2.0>.
104 No bugs, of course. ;-)
105 But if you've found one or have an idea how to improve rjsmin, feel free
106 to send a pull request on `github <https://github.com/ndparker/rjsmin>`_
107 or send a mail to <rjsmin-bugs@perlig.de>.
113 André "nd" Malo <nd perlig.de>
117 If God intended people to be naked, they would be born that way.
120 .. vim:tw=72 syntax=rest
125 b15dc75c71f65d9493a8c7fa233fdcec823e3f1b88ad84a843ffef49b338ac32 412426 rjsmin-1.1.0.tar.gz