Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/contentlayerdev/contentlayer
/ stringifyIfNeeded
Function
stringifyIfNeeded
packages/@contentlayer/utils/src/hash.ts:17–17 ·
view source on GitHub ↗
(_: JsonValue | any)
Source
from the content-addressed store, hash-verified
15
}> {}
16
17
const
stringifyIfNeeded = (_: JsonValue | any) => (typeof _ ===
'string'
? _ : JSON.stringify(_))
Callers
1
hashObject
Function · 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…