# @0x-lerna-fork/describe-ref

> Parse git describe output for lerna-related tags

Latest version **3.16.3** (published 2019-07-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @0x-lerna-fork/describe-ref
pnpm add @0x-lerna-fork/describe-ref
yarn add @0x-lerna-fork/describe-ref
bun add @0x-lerna-fork/describe-ref
```

## Health

**Score 35/100 (D)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 3.16.3 |
| Published | 2019-07-22 |
| First published | 2019-07-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 6.9.0 |
| Dependencies | 2 |
| Unpacked size | 7.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36038 |
| Author | Daniel Stockman |
| Maintainers | albrow, fberger |
| Keywords | lerna, utils, git, describe |

## Links

- npm: https://www.npmjs.com/package/@0x-lerna-fork/describe-ref
- Repository: https://github.com/lerna/lerna
- Homepage: https://github.com/lerna/lerna/tree/master/utils/describe-ref#readme
- Issues: https://github.com/lerna/lerna/issues
- npm.io page: https://npm.io/package/@0x-lerna-fork/describe-ref

## Dependencies (2)

- [npmlog](https://npm.io/package/npmlog.md) ^4.1.2
- [@0x-lerna-fork/child-process](https://npm.io/package/@0x-lerna-fork/child-process.md) 3.16.3

## Recent versions

- 3.16.3 (latest) — 2019-07-22
- 3.16.2 — 2019-07-22

## README

# `@0x-lerna-fork/describe-ref`

> Parse [git describe][] output for lerna-related tags

## Usage

```js
const describe = require("@0x-lerna-fork/describe-ref");

(async () => {
  const { lastTagName, lastVersion, refCount, sha, isDirty } = await describe();
})();

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  // pass a glob to match tag name, e.g. "v*.*.*"
  match: undefined,
  // if true, omit --first-parent option
  includeMergedTags: false,
};

const { lastTagName, lastVersion, refCount, sha, isDirty } = describe.sync(options);

const result = describe.parse("v1.0.0-5-gdeadbeef");
// { lastTagName, lastVersion, refCount, sha, isDirty }
```

Install [lerna](https://www.npmjs.com/package/lerna) for access to the `lerna` CLI.

[git describe]: https://git-scm.com/docs/git-describe

---
_Source: https://npm.io/package/@0x-lerna-fork/describe-ref · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
