Retrieves all Git tags from the current repository.
Optional list of prefixes to remove or replace from the beginning of each tag
Replacement value for matched prefixes
"" Copy
""
await getTags();// [ 'v0.1.0', 'v0.2.0', 'v0.3.0' ]await getTags(['v'], 'version-');// ['version-0.1.0', 'version-0.2.0'] Copy
await getTags();// [ 'v0.1.0', 'v0.2.0', 'v0.3.0' ]await getTags(['v'], 'version-');// ['version-0.1.0', 'version-0.2.0']
1.0.0
Retrieves all Git tags from the current repository.