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

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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