New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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 utility library for working with native objects.

  • 1.5.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34K
decreased by-1.91%
Maintainers
1
Weekly downloads
 
Created
Source

Sugar

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

Version 1.5

Note that this readme applies to Sugar v1.5. This version will continue to be supported as needed. Note that information here may differ from the latest documentation found on the site.

Installing

Pre-built scripts sugar.min.js and sugar.js can be immediately included in any project. Both are the standard build of Sugar that includes default packages.

In npm, use npm install sugar@1.5 for the full build.

Usage

Note that this version of Sugar modifies natives on initialization. All methods are mapped to the global namespace, either built-in classes or their prototypes, and all methods are called directly on them. Polyfills are applied if the native implementation is broken or missing.

Docs

A limited API reference for v1.5 is available on the site, however note that documentation outside of this may no longer be applicable.

Upgrading

If you are upgrading from an older version, please have a look at CAUTION.md which is a vetted changelog that details the severity of what has changed. Also please refer there for notes about a patch that applies to versions prior to v1.3.9.

Custom Builds

Custom builds can no longer be created for v1.5 from the main site. However, build tools in this repo can create them manually. Remove unneeded code from the modules in the lib directory, then run gulp build. Only remove entire modules or methods within extend() blocks. Never remove core or common.

Date Locales

Sugar includes English as the default locale. In addition, the following locales are also available. These files must be added after Sugar is loaded.

Keywords

FAQs

Package last updated on 25 Jul 2016

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