BC-DCBOR TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function createTag

    • Create a new Tag.

      Parameters

      • value: CborNumber

        The numeric tag value

      • Optionalname: string

        Optional human-readable name

      Returns Tag

      A new Tag object

      const dateTag = createTag(1, 'date');
      const customTag = createTag(12345, 'myCustomTag');