git-semver-tags
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/git-semver-tags package

7.0.1 • Public • Published

NPM version Build Status Dependency Status Coverage Status

Get all git semver tags of your repository in reverse chronological order

Note: since lightweight tags do not store date information, the date of a tag is the date of the commit that is tagged on. If two tags on one commit, the order is not guaranteed.

Install

$ npm install --save git-semver-tags

Usage

var gitSemverTags = require('git-semver-tags');

// gitSemverTags([options])

const tags = await gitSemverTags();

console.log(tags);
//=> [ 'v2.0.0', 'v1.0.0' ]
$ npm install --global git-semver-tags
$ git-semver-tags
v2.0.0
v1.0.0

Options

  • opts.lernaTags: extract lerna style tags (foo-package@2.0.0) from the git history, rather than v1.0.0 format.
  • opts.package: what package should lerna style tags be listed for, e.g., foo-package.
  • opts.tagPrefix: specify a prefix for the git tag to be ignored from the semver checks

License

MIT © Steve Mao

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 4.1.1
    1,454,623
    • next
  • 7.0.1
    166,838
    • latest

Version History

Package Sidebar

Install

npm i git-semver-tags

Weekly Downloads

2,394,144

Version

7.0.1

License

MIT

Unpacked Size

6.61 kB

Total Files

5

Last publish

Collaborators

  • bcoe
  • oss-bot
  • stevemao
  • tapppi