MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / get

Method get

packages/utilities/src/storage.ts:10–20  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

8 }
9
10 get(key: string) {
11 try {
12 const value = window[`${this.type}Storage`].getItem(key);
13 if (value && value.startsWith('{') && value?.endsWith('}')) {
14 return JSON.parse(value);
15 }
16 return value;
17 } catch (exception) {
18 return null;
19 }
20 }
21
22 set(key: string, input: string | object) {
23 try {

Callers 15

getCommunityInfoMethod · 0.45
server.tsFile · 0.45
downloadCertFunction · 0.45
ApiClientClass · 0.45
inbound.tsFile · 0.45
storage.spec.tsFile · 0.45
authenticateFunction · 0.45
ApiClass · 0.45
whoAmIMethod · 0.45
getChannelMethod · 0.45
getChannelIntegrationMethod · 0.45
getThreadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected