MCPcopy Create free account
hub / github.com/protomaps/PMTiles / parseHash

Function parseHash

app/src/utils.ts:10–17  ·  view source on GitHub ↗
(hash: string)

Source from the content-addressed store, hash-verified

8
9// Get the hash contents as a map.
10export function parseHash(hash: string): Record<string, string> {
11 const retval: Record<string, string> = {};
12 for (const pair of hash.replace("#", "").split("&")) {
13 const parts = pair.split("=");
14 retval[parts[0]] = parts[1];
15 }
16 return retval;
17}
18
19// Given the current hash and a record of string->strings, creates the new hash
20export function createHash(

Callers 4

PageTileFunction · 0.90
PageArchiveFunction · 0.90
PageMapFunction · 0.90
createHashFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…