Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #1903

rJSmin 1.0.12

Path csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <nd@perlig.de>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'url:pypi': 0.03; '(python': 0.05; 'matches': 0.07; 'newline': 0.07; 'pypy': 0.07; 'strings.': 0.07; 'collapsed': 0.09; 'runtime': 0.09; 'semantics': 0.09; 'url:apache': 0.09; 'url:github': 0.09; 'python': 0.10; 'python.': 0.11; '2.7': 0.13; '(however,': 0.16; '(rather': 0.16; 'andr\xe9': 0.16; 'differs': 0.16; 'exclamation': 0.16; 'license:': 0.16; 'literals': 0.16; 'literals,': 0.16; 'newlines': 0.16; 'only)': 0.16; 'optionally': 0.16; 'url:license-2': 0.16; 'url:licenses': 0.16; 'ways:': 0.16; 'string': 0.17; 'string,': 0.18; 'versions': 0.20; '3.2': 0.22; 'converted': 0.22; 'correctly.': 0.22; 'produces': 0.22; 'skip:= 20': 0.22; 'recognized': 0.24; 'written': 0.24; 'module': 0.25; 'header:User- Agent:1': 0.26; 'appear': 0.26; 'supported': 0.27; 'error': 0.27; 'handling': 0.27; 'regular': 0.29; 'operators': 0.29; 'sensible': 0.29; 'spaces': 0.29; 'such.': 0.29; 'handled': 0.29; "i'm": 0.30; 'comments': 0.30; 'code': 0.30; 'announce': 0.32; 'url:python': 0.33; 'usually': 0.33; 'except': 0.34; 'handle': 0.34; 'world,': 0.35; 'comment': 0.35; 'but': 0.36; 'should': 0.36; 'there': 0.36; 'url:org': 0.36; 'release': 0.37; 'starting': 0.37; 'version': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'mark': 0.40; 'received:network': 0.61; 'header:Message-Id:1': 0.61; 'more': 0.63; 'complete': 0.63; 'url:0': 0.63; 'pleased': 0.64; 'license': 0.65; 'results': 0.66; '=====': 0.84; '============': 0.84; 'homepage': 0.91; 'sensibly': 0.91
From André Malo <nd@perlig.de>
Organization TIMTOWTDI
To python-announce-list@python.org
Subject rJSmin 1.0.12
Date Sun, 18 Oct 2015 22:05:38 +0200
User-Agent KMail/1.9.10
MIME-Version 1.0
Content-Type text/plain; charset="iso-8859-1"
Content-Transfer-Encoding quoted-printable
Content-Disposition inline
X-Mailman-Approved-At Sun, 18 Oct 2015 22:06:05 +0200
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
Approved python-announce-list@python.org
Newsgroups comp.lang.python.announce
Message-ID <mailman.17.1445198766.878.python-announce-list@python.org> (permalink)
Lines 68
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1445198766 news.xs4all.nl 23734 [2001:888:2000:d::a6]:47551
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python.announce:1903

Show key headers only | View raw


Hello World,

I'm pleased to announce version 1.0.12 of rJSmin.


About rJSmin
============

rJSmin is a javascript minifier written in python. The minifier is based
on the semantics of jsmin.c by Douglas Crockford.

The module is a re-implementation aiming for speed, so it can be used at
runtime (rather than during a preprocessing step). Usually it produces
the same results as the original jsmin.c. It differs in the following
ways:

- there is no error detection: unterminated string, regex and comment
  literals are treated as regular javascript code and minified as such.
- Control characters inside string and regex literals are left
  untouched; they are not converted to spaces (nor to \n)
- Newline characters are not allowed inside string and regex literals,
  except for line continuations in string literals (ECMA-5).
- "return /regex/" is recognized correctly.
- Line terminators after regex literals are handled more sensibly
- "+ +" and "- -" sequences are not collapsed to "++" or "--"
- Newlines before ! operators are removed more sensibly
- Comments starting with an exclamation mark ('!') can be kept optionally
- rJSmin does not handle streams, but only complete strings. (However,
  the module provides a "streamy" interface).


About Release 1.0.12
====================

- Reworked handling of comments starting with exclamation marks. The matcher
  should no longer get out of sync, even if they appear in the middle of 
  other matches

- Handle line terminators before and after regex literals more sensible


Supported Python Versions
=========================

* Python 2.4 - 2.7
* Python 3.2 -
* PyPy 1.9 -
* Jython 2.5 - (Python only)


License
=======

rJSmin is available under the terms and conditions of the "Apache License,
Version 2.0."


Links
=====

* Homepage + Documentation: http://opensource.perlig.de/rjsmin/
* PyPI: https://pypi.python.org/pypi/rjsmin
* Github: https://github.com/ndparker/rjsmin
* License: http://www.apache.org/licenses/LICENSE-2.0


André "nd" Malo

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

rJSmin 1.0.12 André Malo <nd@perlig.de> - 2015-10-18 22:05 +0200

csiph-web