content.stat()
Look up a single manifest entry by path or key without parsing the body.
content.stat(key)
Looks up a single manifest entry by its public path (or source/stem key) without parsing the body. Synchronous.
Parameters:
key: a public path or manifest key.
Returns: ContentListFile | undefined
Usage
usage.ts
const entry = content.stat('/posts/hello')