useGit API
    Preparing search index...

    Function hasTag

    • Checks whether a given Git tag exists.

      This method:

      • Works for lightweight tags
      • Works for annotated tags
      • Works for signed and unsigned tags

      Parameters

      • tagName: string

        The tag name to check.

      Returns Promise<boolean>

      true if the tag exists, otherwise false.

      await hasTag("v0.3.0");
      // true

      await hasTag("v9.9.9");
      // false

      1.0.0