GithubHelp home page GithubHelp logo

frosas / sugar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from andrewplummer/sugar

1.0 3.0 0.0 16.48 MB

A Javascript library for working with native objects.

Home Page: http://sugarjs.com/

License: Other

PHP 1.36% Ruby 0.53% Shell 0.03% JavaScript 98.08%

sugar's Introduction

Sugar

A Javascript library for working with native objects. http://sugarjs.com/

Unit Tests Node

Pre-requisites

node.js and npm

Running the tests

Run all the tests by running the shell script:

./unit_tests/node.sh

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

sugar's People

Contributors

andrewplummer avatar liangzan avatar mobz avatar

Stargazers

Francesc Rosas avatar

Watchers

Francesc Rosas avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.