Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A variety of extensions to Underscore.

branch: master
README.md

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.

Extensions

Core

Minor missing extensions. Annotated Source

  • Object property paths
  • Deep extends
  • Index By
  • Function locking (no reentry)
  • and more

Deferred

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

PubSub

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

Request

Http Request library that works on both Node and in the browser. Requires deferreds. Annotated Source

UUID

UUID v4 & v5, as well as Sha1 and Utf8 tools. Annotated Source

Usage

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.

Debug

https://raw.github.com/DavidSouther/superscore/master/lib/superscore.js

Production

https://raw.github.com/DavidSouther/superscore/master/lib/superscore.min.js

Something went wrong with that request. Please try again.