# meta-version

> Gets info about current git version/branch/sha etc and caller package info

Latest version **1.0.2** (published 2024-04-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install meta-version
pnpm add meta-version
yarn add meta-version
bun add meta-version
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2024-04-15 |
| First published | 2022-09-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dolgov Ivan |
| Maintainers | idolgoff |
| Keywords | git, build, webpack |

## Links

- npm: https://www.npmjs.com/package/meta-version
- npm.io page: https://npm.io/package/meta-version

## Dependencies (1)

- [git-repo-info](https://npm.io/package/git-repo-info.md) 2.1.1

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2024-04-15
- 1.0.1 — 2022-09-15
- 1.0.0 — 2022-09-14

## README

# MetaVersion

**MetaVersion**: A lightweight, powerful Node.js module that provides real-time metadata about your git repository, build, and package. Enhance your debugging and monitoring experience, making your development process more efficient and informed.

## Installation

Install the module with npm:

```bash
npm install meta-version --save-dev
```

## Usage

First, import the module in your file:

```javascript
const { metaVersion } = require('meta-version');
```

Then, call the metaVersion function:

```javascript
const metadata = metaVersion();
console.log(metadata);
```

## Function

The metaVersion function accepts an optional parameter:

- projectRoot (string): The root directory of the project. Defaults to the current working directory.

## Example

Here’s an example of how to use the module:

```javascript
const { metaVersion } = require('meta-version');

const metadata = metaVersion('/path/to/your/project');
console.log(metadata);
```

In this example, the module will return the metadata about the git repository, build, and package of the project located at ‘/path/to/your/project’.

Happy coding!

---
_Source: https://npm.io/package/meta-version · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
