Skip to content
A Javascript library for working with native objects.
Find file
Pull request Compare This branch is 352 commits ahead, 1919 commits behind andrewplummer:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A Javascript library for working with native objects.

Unit Tests Node


node.js and npm

Running the tests

Run all the tests by running the shell script:


Note about using Dates as a standalone module

The Date module depends on a number of Sugar methods. It can be used on its own, but you will have to keep the following dependencies in addition to this module. The Array Module's polyfill methods can be skipped if you don't care about < IE8 or if you are using another library that provides them. Finally, you must keep "buildDate" in the initialization script at the very bottom of the file.

Global private methods (at the top of the file)

  • extend
  • extendWithNativeCondition
  • wrapNative
  • defineProperty
  • iterateOverObject

Object private methods

  • instance
  • typeMethods
  • buildTypeMethods

Number instance methods

  • ordinalize
  • pad

String private methods

  • padstring
  • NPCGMatch

String instance methods

  • capitalize
  • first
  • from
  • repeat
  • to

Array instance methods (polyfill)

  • indexOf
  • filter
  • forEach
  • map
Something went wrong with that request. Please try again.