Ravenports generated: 02 Jul 2018 06:37
[ravenports.git] / bucket_DF / python-rjsmin
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               python-rjsmin
4 VERSION=                1.0.12
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.0.12.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.0.12
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:2705: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 - Line terminators after regex literals are handled more sensibly
60 - "+ +" and "- -" sequences are not collapsed to '++' or '--'
61 - Newlines before ! operators are removed more sensibly
62 - Comments starting with an exclamation mark (``!``) can be kept optionally
63 - rJSmin does not handle streams, but only complete strings. (However, the
64   module provides a "streamy" interface).
65
66 Since most parts of the logic are handled by the regex engine it's way
67 faster
68 than the original python port of ``jsmin.c`` by Baruch Even. The speed
69 factor
70 varies between about 6 and 55 depending on input and python version (it
71 gets
72 faster the more compressed the input already is).  Compared to the
73 speed-refactored python port by Dave St.Germain the performance gain is
74 less
75 dramatic but still between 3 and 50 (for huge inputs)). See the
76 docs/BENCHMARKS file for details.
77
78 rjsmin.c is a reimplementation of rjsmin.py in C and speeds it up even
79 more.
80
81 Both python 2 (>=2.4) and python 3 are supported.
82
83 .. _jsmin.c by Douglas Crockford:
84 http://www.crockford.com/javascript/jsmin.c
85
86
87 Copyright and License
88 ~~~~~~~~~~~~~~~~~~~~~
89
90 Copyright 2011 - 2015
91 AndrĂ© Malo or his licensors, as applicable.
92
93 The whole package (except for the files in the bench/ directory) is
94 distributed under the Apache License Version 2.0. You'll find a copy in the
95 root directory of the distribution or online at:
96 <http://www.apache.org/licenses/LICENSE-2.0>.
97
98
99 Bugs
100 ~~~~
101
102 No bugs, of course. ;-)
103 But if you've found one or have an idea how to improve rjsmin, feel free
104 to send a pull request on `github <https://github.com/ndparker/rjsmin>`_
105 or send a mail to <rjsmin-bugs@perlig.de>.
106
107
108 Author Information
109 ~~~~~~~~~~~~~~~~~~
110
111 AndrĂ© "nd" Malo <nd perlig.de>
112 GPG: 0x8103A37E
113
114
115     If God intended people to be naked, they would be born that way.
116     -- Oscar Wilde
117
118 .. vim:tw=72 syntax=rest
119
120
121 [FILE:99:distinfo]
122 dd9591aa73500b08b7db24367f8d32c6470021f39d5ab4e50c7c02e4401386f1       446822 rjsmin-1.0.12.tar.gz
123