@nethesis/phone-island
Version:
NethVoice CTI Phone Island
3 lines (2 loc) • 410 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,o={};let r,n=0,s=0;function c(o){let r="";do{r=e[o%t]+r,o=Math.floor(o/t)}while(o>0);return r}for(;s<t;s++)o[e[s]]=s;exports.encode=c,exports.yeast=function(){const e=c(+new Date);return e!==r?(n=0,r=e):e+"."+c(n++)};
//# sourceMappingURL=yeast.js.map