A tool to count the number of tags of a git repository
$ npm i count-git-tags --save
or
$ yarn add count-git-tags
const countGitTags = require('count-git-tags');
countGitTags(); // the number of tags of a repo of process.cwd()
countGitTags({ path: 'path/to/repo' }); // the number of tags of a repo in `path/to/repo`
countGitTags({ path: 'path/to/repo', local: false }); // the number of tags of a repo in `path/to/repo`, from the remote repository
MIT © Lukas Aichbauer