js-ipfs-unixfs
    Preparing search index...

    Interface IdentityNode

    Entries with a identity codec CID return identity entries.

    These are entries where the data payload is stored in the CID itself, otherwise they are identical to RawNodes.

    interface IdentityNode {
        cid: CID;
        node: Uint8Array;
        size: bigint;
        type: "identity";
        content(
            options?: ExporterOptions,
        ): AsyncGenerator<Uint8Array<ArrayBufferLike>, void, unknown>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Methods

    Properties

    cid: CID

    The CID of the entry

    size: bigint
    type: "identity"

    A disambiguator to allow TypeScript to work out the type of the entry.

    if (entry.type === 'file') {
    // access UnixFSFile properties safely
    }

    if (entry.type === 'directory') {
    // access UnixFSDirectory properties safely
    }

    Methods