Ravenports generated: 26 Feb 2024 01:41
[ravenports.git] / bucket_DF / python-rjsmin
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-rjsmin
4 VERSION=                1.2.2
5 KEYWORDS=               python
6 VARIANTS=               v11 v12
7 SDESC[v11]=             Javascript Minifier (3.11)
8 SDESC[v12]=             Javascript Minifier (3.12)
9 HOMEPAGE=               http://opensource.perlig.de/rjsmin/
10 CONTACT=                Python_Automaton[python@ironwolf.systems]
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            PYPI/r/rjsmin
14 DISTFILE[1]=            rjsmin-1.2.2.tar.gz:main
15 DF_INDEX=               1
16 SPKGS[v11]=             single
17 SPKGS[v12]=             single
18
19 OPTIONS_AVAILABLE=      PY311 PY312
20 OPTIONS_STANDARD=       none
21 VOPTS[v11]=             PY311=ON PY312=OFF
22 VOPTS[v12]=             PY311=OFF PY312=ON
23
24 DISTNAME=               rjsmin-1.2.2
25
26 GENERATED=              yes
27
28 [PY311].USES_ON=                        python:v11,sutools
29
30 [PY312].USES_ON=                        python:v12,sutools
31
32 [FILE:2765:descriptions/desc.single]
33 =====================
34  Javascript Minifier
35 =====================
36
37 rJSmin is a javascript minifier written in python.
38
39 The minifier is based on the semantics of `jsmin.c by Douglas Crockford`_\.
40
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:
44
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;
48 they
49   are not converted to spaces (nor to \n)
50 - Newline characters are not allowed inside string and regex literals,
51 except
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).
62
63 Since most parts of the logic are handled by the regex engine it's way
64 faster
65 than the original python port of ``jsmin.c`` by Baruch Even. The speed
66 factor
67 varies between about 6 and 55 depending on input and python version (it
68 gets
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
71 less
72 dramatic but still between 3 and 50 (for huge inputs)). See the
73 docs/BENCHMARKS file for details.
74
75 rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even
76 more.
77
78 Supported python versions are 2.7 and 3.6+.
79
80 .. _jsmin.c by Douglas Crockford:
81 http://www.crockford.com/javascript/jsmin.c
82
83 Copyright and License
84 ~~~~~~~~~~~~~~~~~~~~~
85
86 Copyright 2011 - 2023
87 AndrĂ© Malo or his licensors, as applicable.
88
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>.
93
94 Bugs
95 ~~~~
96
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>.
101
102 Author Information
103 ~~~~~~~~~~~~~~~~~~
104
105 AndrĂ© "nd" Malo <nd perlig.de>
106 GPG: 0x029C942244325167
107
108     If God intended people to be naked, they would be born that way.
109     -- Oscar Wilde
110
111 .. vim:tw=72 syntax=rest
112
113
114 [FILE:98:distinfo]
115 8c1bcd821143fecf23242012b55e13610840a839cd467b358f16359010d62dae       420634 rjsmin-1.2.2.tar.gz
116