Debian Codegraph @

third_party/python/jsmin/PKG-INFO

raw
1 Metadata-Version: 1.2
2 Name: jsmin
3 Version: 3.0.0
4 Summary: JavaScript minifier.
5 Home-page: https://github.com/tikitu/jsmin/
6 Author: Dave St.Germain
7 Author-email: [email protected]
8 Maintainer: Tikitu de Jager
9 Maintainer-email: [email protected]
10 License: MIT License
11 Description: =====
12 jsmin
13 =====
14
15 JavaScript minifier.
16
17 Usage
18 =====
19
20 .. code:: python
21
22 from jsmin import jsmin
23 with open('myfile.js') as js_file:
24 minified = jsmin(js_file.read())
25
26 You can run it as a commandline tool also::
27
28 python -m jsmin myfile.js
29
30 NB: ``jsmin`` makes no attempt to be compatible with
31 `ECMAScript 6 / ES.next / Harmony <http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts>`_.
32 The current maintainer does not intend to add ES6-compatibility. If you would
33 like to take over maintenance and update ``jsmin`` for ES6, please contact
34 `Tikitu de Jager <mailto:[email protected]>`_. Pull requests are also
35 welcome, of course, but my time to review them is somewhat limited these days.
36
37 If you're using ``jsmin`` on ES6 code, though, you might find the ``quote_chars``
38 parameter useful:
39
40 .. code:: python
41
42 from jsmin import jsmin
43 with open('myfile.js') as js_file:
44 minified = jsmin(js_file.read(), quote_chars="'\"`")
45
46
47 Where to get it
48 ===============
49
50 * install the package `from pypi <https://pypi.python.org/pypi/jsmin/>`_
51 * get the latest release `from latest-release on github <https://github.com/tikitu/jsmin/tree/latest-release/jsmin>`_
52 * get the development version `from master on github <https://github.com/tikitu/jsmin/>`_
53
54
55 Python 2 support removed
56 ========================
57
58 Python 2 support was removed in version 3.0.0. If you need to support Python 2, please use version 2.2.2 with setuptools<58.
59
60 Contributing
61 ============
62
63 `Issues <https://github.com/tikitu/jsmin/issues>`_ and `Pull requests <https://github.com/tikitu/jsmin/pulls>`_
64 will be gratefully received on Github. The project used to be hosted
65 `on bitbucket <https://bitbucket.org/dcs/jsmin/>`_ and old issues can still be
66 found there.
67
68 If possible, please make separate pull requests for tests and for code: tests will be added to the `latest-release` branch while code will go to `master`.
69
70 Unless you request otherwise, your Github identity will be added to the contributor's list below; if you prefer a
71 different name feel free to add it in your pull request instead. (If you prefer not to be mentioned you'll have to let
72 the maintainer know somehow.)
73
74 Build/test status
75 =================
76
77 Both branches are tested with Travis: https://travis-ci.org/tikitu/jsmin
78
79 The `latest-release` branch (the version on PyPI plus any new tests) is tested against CPython 3.
80 Currently:
81
82 .. image:: https://travis-ci.org/tikitu/jsmin.png?branch=latest-release
83
84 If that branch is failing that means there's a new test that fails on *the latest released version on pypi*, with no fix yet
85 released.
86
87 The `master` branch (development version, might be ahead of latest released version) is tested against CPython 3.
88 Currently:
89
90 .. image:: https://travis-ci.org/tikitu/jsmin.png?branch=master
91
92 If `master` is failing don't use it, but as long as `latest-release` is passing the pypi release should be ok.
93
94 Contributors (chronological commit order)
95 =========================================
96
97 * `Dave St.Germain <https://bitbucket.org/dcs>`_ (original author)
98 * `Hans weltar <https://bitbucket.org/hansweltar>`_
99 * `Tikitu de Jager <mailto:[email protected]>`_ (current maintainer)
100 * https://bitbucket.org/rennat
101 * `Nick Alexander <https://bitbucket.org/ncalexan>`_
102 * `Gennady Kovshenin <https://github.com/soulseekah>`_
103 * `Matt Molyneaux <https://github.com/moggers87>`_
104 * `Albert Wang <https://github.com/albertyw>`_
105 * `Ben Bradshaw <https://github.com/serenecloud>`_
106
107 Changelog
108 =========
109
110 v3.0.0 (2021-09-08) Ben Bradshaw
111 --------------------------------
112
113 - Breaking Change: Removed support for Python 2
114
115 - Removed usage of use_2to3 in setup.py
116
117 v2.2.2 (2017-05-01) Tikitu de Jager
118 -----------------------------------
119
120 - Add license headers to code files (fixes i#17)
121
122 - Remove mercurial files (fixes #20)
123
124 v2.2.1 (2016-03-06) Tikitu de Jager
125 -----------------------------------
126
127 - Fix #14: Infinite loop on `return x / 1;`
128
129 v2.2.0 (2015-12-19) Tikitu de Jager
130 -----------------------------------
131
132 - Merge #13: Preserve "loud comments" starting with `/*!`
133
134 These are commonly used for copyright notices, and are preserved by various
135 other minifiers (e.g. YUI Compressor).
136
137 v2.1.6 (2015-10-14) Tikitu de Jager
138 -----------------------------------
139
140 - Fix #12: Newline following a regex literal should not be elided.
141
142 v2.1.5 (2015-10-11) Tikitu de Jager
143 -----------------------------------
144
145 - Fix #9: Premature end of statement caused by multi-line comment not
146 adding newline.
147
148 - Fix #10: Removing multiline comment separating tokens must leave a space.
149
150 - Refactor comment handling for maintainability.
151
152 v2.1.4 (2015-08-23) Tikitu de Jager
153 -----------------------------------
154
155 - Fix #6: regex literal matching comment was not correctly matched.
156
157 - Refactor regex literal handling for robustness.
158
159 v2.1.3 (2015-08-09) Tikitu de Jager
160 -----------------------------------
161
162 - Reset issue numbering: issues live in github from now on.
163
164 - Fix #1: regex literal was not recognised when occurring directly after `{`.
165
166 v2.1.2 (2015-07-12) Tikitu de Jager
167 -----------------------------------
168
169 - Issue numbers here and below refer to the bitbucket repository.
170
171 - Fix #17: bug when JS starts with comment then literal regex.
172
173 v2.1.1 (2015-02-14) Tikitu de Jager
174 -----------------------------------
175
176 - Fix #16: bug returning a literal regex containing escaped forward-slashes.
177
178 v2.1.0 (2014-12-24) Tikitu de Jager
179 -----------------------------------
180
181 - First changelog entries; see README.rst for prior contributors.
182
183 - Expose quote_chars parameter to provide just enough unofficial Harmony
184 support to be useful.
185
186
187 Platform: UNKNOWN
188 Classifier: Development Status :: 5 - Production/Stable
189 Classifier: Environment :: Web Environment
190 Classifier: Intended Audience :: Developers
191 Classifier: License :: OSI Approved :: MIT License
192 Classifier: Operating System :: OS Independent
193 Classifier: Programming Language :: Python :: 3 :: Only
194 Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
195 Classifier: Topic :: Software Development :: Pre-processors
196 Classifier: Topic :: Text Processing :: Filters