MCPcopy
hub / github.com/partykit/partykit / getArrayKVOption

Function getArrayKVOption

packages/partykit/src/bin.tsx:87–96  ·  view source on GitHub ↗
(val: string[] = [])

Source from the content-addressed store, hash-verified

85});
86
87function getArrayKVOption(val: string[] = []) {
88 return val.reduce(
89 (acc, curr) => {
90 const [key, ...value] = curr.split("=");
91 acc[key] = value.join("=");
92 return acc;
93 },
94 {} as Record<string, string>
95 );
96}
97
98program
99 .name("partykit")

Callers 1

bin.tsxFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected