A straightforward API makes Sugar very easy to pick up and start using. Custom builds and modularized npm packages let you use only what you need. Users can define methods or use plugins to handle specialized use cases. The date module parses, formats, and manipulates dates and supports many locales. Sugar blends in with native methods, and defers to their implementations when possible. A comprehensive polyfill suite patches browser support when it is broken or missing. As of v2.0, native extension has become opt-in while supporting two new ways of interacting with the library. Sugar still believes in the safe extension of natives, however there are times when this is not appropriate, and this choice is now put in the hands of the user. Custom browser builds can be created on the site download page. In addition, tools like Browserify can also be used to create custom builds, as npm packages are now fully modular.

Features

  • Simple and modular
  • Includes polyfills and natives
  • The date module parses, formats, and manipulates dates and supports many locales
  • Sugar builds can now be customized at method level
  • Locale definition files are in the locales directory
  • Sugar npm packages make use of modules, both in the main sugar package as well as individual module packages

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Sugar

Sugar Web Site

You Might Also Like
Tigerpaw One | Business Automation Software for SMBs Icon
Tigerpaw One | Business Automation Software for SMBs

Fed up with not having the time, money and resources to grow your business?

The only software you need to increase cash flow, optimize resource utilization, and take control of your assets and inventory.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Sugar!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2021-12-10