You are looking at historical revision 17117 of this page. It may differ significantly from its current revision.

jsmin

Description

jsmin is an almost line-by-line translation of Douglas Crockford's jsmin C code to Scheme.

See the jsmin page to see what it does and what you should beware of when using it.

Author

Douglas Crockford is the author of jsmin. Mario Domenech Goulart translated it to Scheme.

Requirements

None

Procedures

[procedure] (jsmin-string str)

Return a minified string from the given string containing javascript code.

[procedure] (jsmin-file file)

Return a minified string from the contents of the given javascript file.

License

 
 # The code of this extension is originaly from jsmin by Douglas
 # Crockford, it was translated to Scheme by Mario Domenech Goulart. The
 # original code has the following copyright and license.
 #
 # /* jsmin.c
 #    2008-08-03
 #
 # Copyright (c) 2002 Douglas Crockford  (www.crockford.com)
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy of
 # this software and associated documentation files (the "Software"), to deal in
 # the Software without restriction, including without limitation the rights to
 # use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 # of the Software, and to permit persons to whom the Software is furnished to do
 # so, subject to the following conditions:
 #
 # The above copyright notice and this permission notice shall be included in all
 # copies or substantial portions of the Software.
 #
 # The Software shall be used for Good, not Evil.
 #
 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 # SOFTWARE.
 # */

Version history

1.0
Initial release