jQuery is a fantastic javascript library with excellent CSS selector capabilities and DOM manipulation. It's light-weight and really fast. Prototype is an excellent all-purpose library with many great utility features, including string manipulation, enumerable arrays and hashes. I love using jQuery for its speed and simplicity, but I miss Prototype's utilities. Luckily, jQuery is very extensible with its versatile plugin system. $.string is a plugin which aims to provide Prototype's string manipulation functions to jQuery.
$.string requires jQuery 1.2.2 or later. It may work with earlier versions, but only these have been tested. $.string has been tested with the following web browsers:
COPYRIGHT
jquery.string - Prototype string functions for jQuery
(c) 2008-2011 David E. Still (http://stilldesigning.com)
Original Prototype extensions (c) 2005-2011 Sam Stephenson (http://prototypejs.org)
LICENSE
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 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.
(The astute reader will note that this is the same license that Prototype is released under.)
jquery.string.1.1.0.js - $.string - uncompressed (14.2k)
jquery.string.1.1.0-min.js - $.string - minified (4.8k)
jquery.string.testsuite.js - $.string Test Suite (16.8k)
Below is the results of the compatibility test suite for $.string. A Failed! test will also list the number of the test(s) that failed. If you find additional test cases that can be added that cover conditions not adequately represented by the existing test suite, please contact dave <at> stilldesigning <dot> com.