Superscore provides a variety of extensions to Underscore. Underscore's fantastic support for collection and data structure handling in Javascript is the best of any library today, bar none. These functions in Superscore aim to provide further snippets of commonly used functionality, including callback chains, eventing, and other small but often-needed tools.
Minor missing extensions. Annotated Source
- Object property paths
- Deep extends
- Index By
- Function locking (no reentry)
- and more
The Callbacks and Deferred library from jQuery. Callbacks chains provide an easy way to register multiple functions where traditionally a single callback would be provided. Deferreds provide a semantic extension on callbacks representing the completion of asynchronous events. Together, they can increase functionality of nearly any library with almost no additions to their API. Annotated Source
A full pubsub library for general messaging. Provides both raw messaging channels, as well as attaching event delegates to any arbitrary object. When jQuery is present, full browser event functionality is included. Annotated Source
Http Request library that works on both Node and in the browser. Requires deferreds. Annotated Source
UUID v4 & v5, as well as Sha1 and Utf8 tools. Annotated Source
In the browser, include the compiled sources using github as a CDN after Underscore itself. For jQuery functionality, include jQuery core before superscore as well.
On the server, npm install superscore
or include superscore in package.json
's dependencies
.
https://raw.github.com/DavidSouther/superscore/master/lib/superscore.js
https://raw.github.com/DavidSouther/superscore/master/lib/superscore.min.js