brisky-stamp
Generate unique meta information for change in a system, monotonic timestamps
const stamp = // stamp.create(type, source, override)// results in [ 946725040140, 0, 21158948 ]// only lowercase letters from the alphabet are supported (base(36)) console // fires when a stamp closes (is handled)stamp // fires stamp listenersstamp const parsed = stamp// returns a parsed stamp { type: 'click', val: 1 } // remove all listenersstampclear // offset internal clockstampoffset = 100 // add 100 ms to timestamps // check if listeners are in progressstampinProgress // true or false
note Types only support base 36 characters - beware! (lowercase letters from the alphabet)