Sugar gives you some nice classes that are highly specialized in one purpose only like:

Stored in coffeekraken-sugar/js/classes/...

  • STimer : Handle times with nice control like start, stop, pause, etc...
  • SColor : Manipulate colors and access your sass registered colors
  • SWatcher : Add some watchers on native object properties and be notified on updated
  • And more...


To use the classes, simply import them from into your codebase like this:

import STimer from 'coffeekraken-sugar/js/classes/STimer';
// then use it
const myTimer = new STimer(2000);