Ravenports generated: 10 Mar 2019 18:50
[ravenports.git] / bucket_DF / python-rjsmin
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-rjsmin
4 VERSION=                1.1.0
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]
12
13 DOWNLOAD_GROUPS=        main
14 SITES[main]=            PYPI/r/rjsmin
15 DISTFILE[1]=            rjsmin-1.1.0.tar.gz:main
16 DF_INDEX=               1
17 SPKGS[py36]=            single
18 SPKGS[py37]=            single
19 SPKGS[py27]=            single
20
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
26
27 DISTNAME=               rjsmin-1.1.0
28
29 GENERATED=              yes
30
31 [PY36].USES_ON=                         python:py36
32
33 [PY37].USES_ON=                         python:py37
34
35 [PY27].USES_ON=                         python:py27
36
37 [FILE:2800:descriptions/desc.single]
38 =====================
39  Javascript Minifier
40 =====================
41
42 rJSmin is a javascript minifier written in python.
43
44 The minifier is based on the semantics of `jsmin.c by Douglas Crockford`_\.
45
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:
49
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;
53 they
54   are not converted to spaces (nor to \n)
55 - Newline characters are not allowed inside string and regex literals,
56 except
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).
67
68 Since most parts of the logic are handled by the regex engine it's way
69 faster
70 than the original python port of ``jsmin.c`` by Baruch Even. The speed
71 factor
72 varies between about 6 and 55 depending on input and python version (it
73 gets
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
76 less
77 dramatic but still between 3 and 50 (for huge inputs)). See the
78 docs/BENCHMARKS file for details.
79
80 rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even
81 more.
82
83 Supported python versions are 2.7 and 3.4+.
84
85 .. _jsmin.c by Douglas Crockford:
86 http://www.crockford.com/javascript/jsmin.c
87
88
89 Copyright and License
90 ~~~~~~~~~~~~~~~~~~~~~
91
92 Copyright 2011 - 2019
93 AndrĂ© Malo or his licensors, as applicable.
94
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>.
99
100
101 Bugs
102 ~~~~
103
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>.
108
109
110 Author Information
111 ~~~~~~~~~~~~~~~~~~
112
113 AndrĂ© "nd" Malo <nd perlig.de>
114 GPG: 0x8103A37E
115
116
117     If God intended people to be naked, they would be born that way.
118     -- Oscar Wilde
119
120 .. vim:tw=72 syntax=rest
121
122
123
124 [FILE:98:distinfo]
125 b15dc75c71f65d9493a8c7fa233fdcec823e3f1b88ad84a843ffef49b338ac32       412426 rjsmin-1.1.0.tar.gz
126