Documentation
    Preparing search index...

    Function parseSourceMetadata

    • Parse source, source-commit and source-archive tags with the NIP-5D ignore rules: each field must appear once and be well-formed, and a commit pin is kept only alongside a usable repository source.

      Spec-gap decision: an HTTP(S) source may name a repository or an archive and the two cannot be distinguished from the location alone, so any accepted source location retains an otherwise valid source-commit.

      Parameters

      • tags: readonly (readonly string[])[]

        Manifest event tags

      Returns SourceMetadata

      Accepted fields; omitted fields were absent or ignored

      const { source, sourceCommit } = parseSourceMetadata(event.tags);