Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/computer
/ parseJSON
Function
parseJSON
examples/artifacts/src/index.ts:217–219 ·
view source on GitHub ↗
(text: string)
Source
from the content-addressed store, hash-verified
215
}
216
217
function
parseJSON<T>(text: string): T {
218
return
JSON.parse(text) as T;
219
}
220
221
function
isValidWorkerName(name: string): boolean {
222
return
/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(name);
Callers
1
handleCreate
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected