@contentauth/c2pa-node


@contentauth/c2pa-node / ReaderInterface

Interface: ReaderInterface

Defined in: types.d.ts:286

Methods

isEmbedded()

isEmbedded(): boolean

Defined in: types.d.ts:300

Returns true if the the reader was created from an embedded manifest

Returns

boolean


json()

json(): ManifestStore

Defined in: types.d.ts:290

Get the JSON representation of the manifest

Returns

ManifestStore


postValidateCawg()

postValidateCawg(): Promise<void>

Defined in: types.d.ts:312

Run CAWG validation

Returns

Promise<void>


remoteUrl()

remoteUrl(): string

Defined in: types.d.ts:295

Get the remote url of the manifest if this reader obtained the manifest remotely

Returns

string


resourceToAsset()

resourceToAsset(uri, output): Promise<number>

Defined in: types.d.ts:307

Write a resource to a buffer or file

Parameters

uri

string

The URI of the resource

output

DestinationAsset

Returns

Promise<number>