Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Script-Hub-Org/Script-Hub
/ toObj
Method
toObj
env/env.js:73–79 ·
view source on GitHub ↗
(t, e = null)
Source
from the content-addressed store, hash-verified
71
return
'Stash'
=== this.getEnv()
72
}
73
toObj(t, e = null) {
74
try {
75
return
JSON.parse(t)
76
} catch {
77
return
e
78
}
79
}
80
toStr(t, e = null) {
81
try {
82
return
JSON.stringify(t)
Callers
nothing calls this directly
Calls
1
parse
Method · 0.45
Tested by
no test coverage detected