Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sugar

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sugar

A Javascript library for working with native objects.

  • 0.9.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33K
increased by14.9%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 05 Sep 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc