Sugar

Sugar is a Javascript library for working with native objects. It is designed to be intuitive, unobtrusive, and let you do more with less code. Sugar is a not a framework for AJAX, animation, or DOM manipulation. Sugar was written with jQuery very much in mind, and finds its niche working side by side with jQuery, especially in data-heavy applications. However it is entirely standalone, and in no way dependent on jQuery, or even on the browsing environment. In fact, Sugar is not tied to the browser in any way.

Features

  • Sugar extends native Javascript objects with helpful, intuitive methods.
  • Sugar adds cross browser functionality when it is broken or missing.
  • Sugar is entirely test driven from the ground up and includes a massive suite of tests.
  • Sugar layers in enhancements when necessary, but defers to native functions when available.
  • Sugar plays nicely with other Javascript frameworks and third-party code.
  • Sugar is simple to understand and easy to use.
  • Sugar is fully ECMAScript compliant.

Features

Sugar will never overwrite methods that already exist, and so is safe to include in any existing web pages. It can be opted in over existing frameworks like Prototype, YUI, and MooTools, adding in only the extra bits of sweetness.