superscore

0.3.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i superscore

Weekly Downloads

8

Version

0.3.4

License

none

Last publish

Collaborators

  • davidsouther