| 1 | Source: python-rjsmin |
| 2 | Section: python |
| 3 | Priority: optional |
| 4 | Maintainer: Debian OpenStack <[email protected]> |
| 5 | Uploaders: |
| 6 | Thomas Goirand <[email protected]>, |
| 7 | Build-Depends: |
| 8 | debhelper-compat (= 12), |
| 9 | dh-python, |
| 10 | openstack-pkg-tools (>= 99~), |
| 11 | python3-all-dev, |
| 12 | python3-chardet, |
| 13 | python3-pytest, |
| 14 | python3-setuptools, |
| 15 | Standards-Version: 4.1.0 |
| 16 | Vcs-Browser: https://salsa.debian.org/openstack-team/python/python-rjsmin |
| 17 | Vcs-Git: https://salsa.debian.org/openstack-team/python/python-rjsmin.git |
| 18 | Homepage: http://opensource.perlig.de/rjsmin/ |
| 19 | Testsuite: autopkgtest-pkg-python |
| 20 | |
| 21 | Package: python3-rjsmin |
| 22 | Architecture: any |
| 23 | Depends: |
| 24 | ${misc:Depends}, |
| 25 | ${python3:Depends}, |
| 26 | ${shlibs:Depends}, |
| 27 | Description: javascript minifier written in Python - Python 3.x |
| 28 | rJSmin is a javascript minifier written in Python. The minifier is based on |
| 29 | the semantics of jsmin.c by Douglas Crockford. |
| 30 | . |
| 31 | The module is a re-implementation aiming for speed, so it can be used at |
| 32 | runtime (rather than during a preprocessing step). Usually it produces the |
| 33 | same results as the original jsmin.c. It differs in the following ways: |
| 34 | . |
| 35 | - there is no error detection: unterminated string, regex and comment |
| 36 | literals are treated as regular javascript code and minified as such. |
| 37 | - Control characters inside string and regex literals are left untouched; they |
| 38 | are not converted to spaces (nor to CR) |
| 39 | - Newline characters are not allowed inside string and regex literals, except |
| 40 | for line continuations in string literals (ECMA-5). |
| 41 | - "return /regex/" is recognized correctly. |
| 42 | - Line terminators after regex literals are handled more sensibly |
| 43 | - "+ +" and "- -" sequences are not collapsed to '++' or '--' |
| 44 | - Newlines before ! operators are removed more sensibly |
| 45 | - Comments starting with an exclamation mark (!) can be kept optionally |
| 46 | - rJSmin does not handle streams, but only complete strings. (However, the |
| 47 | module provides a "streamy" interface). |
| 48 | . |
| 49 | Since most parts of the logic are handled by the regex engine it's way faster |
| 50 | than the original Python port of jsmin.c by Baruch Even. The speed factor |
| 51 | varies between about 6 and 55 depending on input and Python version (it gets |
| 52 | faster the more compressed the input already is). Compared to the |
| 53 | speed-refactored Python port by Dave St.Germain the performance gain is less |
| 54 | dramatic but still between 3 and 50 (for huge inputs)). See the |
| 55 | docs/BENCHMARKS file for details. |
| 56 | . |
| 57 | This package contains the Python 3.x module. |