MCPcopy Create free account
hub / github.com/Semporia/Scripts / string10to64

Function string10to64

jd_validate.js:275–286  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

273
274function getCoordinate(c) {
275 function string10to64(d) {
276 let c = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-~".split("")
277 , b = c.length
278 , e = +d
279 , a = [];
280 do {
281 mod = e % b;
282 e = (e - mod) / b;
283 a.unshift(c[mod])
284 } while (e);
285 return a.join("")
286 }
287
288 function prefixInteger(a, b) {
289 return (Array(b).join(0) + a).slice(-b)

Callers 1

pretreatmentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected