# project-version

> Get the current version of your project

Latest version **2.0.0** (published 2020-07-02) · MIT license · 0 weekly downloads

## Install

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

Provides the command `project-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 | 2.0.0 |
| Published | 2020-07-02 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Simone Primarosa |
| Maintainers | simonepri |
| Keywords | project, latest, version, node, npm, pkg, package, package.json, current, module |

## Links

- npm: https://www.npmjs.com/package/project-version
- Repository: https://github.com/simonepri/project-version
- Homepage: https://github.com/simonepri/project-version#readme
- Issues: https://github.com/simonepri/project-version/issues
- npm.io page: https://npm.io/package/project-version

## Dependencies (1)

- [read-pkg](https://npm.io/package/read-pkg.md) ^5.2.0

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-07-02
- 1.2.1 — 2020-07-02
- 1.2.0 — 2018-08-13
- 1.1.0 — 2018-08-09
- 1.0.0 — 2017-08-02

## README

<h1 align="center">
  <b>project-version</b>
</h1>
<p align="center">
  <!-- Version - npm -->
  <a href="https://www.npmjs.com/package/project-version">
    <img src="https://img.shields.io/npm/v/project-version.svg" alt="Latest version on npm" />
  </a>
  <!-- Downloads - npm -->
  <a href="https://npm-stat.com/charts.html?package=project-version">
    <img src="https://img.shields.io/npm/dt/project-version.svg" alt="Downloads on npm" />
  </a>
  <!-- License - MIT -->
  <a href="https://github.com/simonepri/project-version/tree/master/license">
    <img src="https://img.shields.io/github/license/simonepri/project-version.svg" alt="Project license" />
  </a>

  <br/>

  <!-- Lint -->
  <a href="https://github.com/simonepri/project-version/actions?query=workflow:lint+branch:master">
    <img src="https://github.com/simonepri/project-version/workflows/lint/badge.svg?branch=master" alt="Lint status" />
  </a>
  <!-- Test - macOS -->
  <a href="https://github.com/simonepri/project-version/actions?query=workflow:test-macos+branch:master">
    <img src="https://github.com/simonepri/project-version/workflows/test-macos/badge.svg?branch=master" alt="Test macOS status" />
  </a>
  <!-- Test - Ubuntu -->
  <a href="https://github.com/simonepri/project-version/actions?query=workflow:test-ubuntu+branch:master">
    <img src="https://github.com/simonepri/project-version/workflows/test-ubuntu/badge.svg?branch=master" alt="Test Ubuntu status" />
  </a>
  <!-- Test - Windows -->
  <a href="https://github.com/simonepri/project-version/actions?query=workflow:test-windows+branch:master">
    <img src="https://github.com/simonepri/project-version/workflows/test-windows/badge.svg?branch=master" alt="Test Windows status" />
  </a>

  <br/>

  <!-- Coverage - Codecov -->
  <a href="https://codecov.io/gh/simonepri/project-version">
    <img src="https://img.shields.io/codecov/c/github/simonepri/project-version/master.svg" alt="Codecov Coverage report" />
  </a>
  <!-- DM - Snyk -->
  <a href="https://snyk.io/test/github/simonepri/project-version?targetFile=package.json">
    <img src="https://snyk.io/test/github/simonepri/project-version/badge.svg?targetFile=package.json" alt="Known Vulnerabilities" />
  </a>
  <!-- DM - David -->
  <a href="https://david-dm.org/simonepri/project-version">
    <img src="https://david-dm.org/simonepri/project-version/status.svg" alt="Dependency Status" />
  </a>

  <br/>

  <!-- Code Style - XO-Prettier -->
  <a href="https://github.com/xojs/xo">
    <img src="https://img.shields.io/badge/code_style-XO+Prettier-5ed9c7.svg" alt="XO Code Style used" />
  </a>
  <!-- Test Runner - AVA -->
  <a href="https://github.com/avajs/ava">
    <img src="https://img.shields.io/badge/test_runner-AVA-fb3170.svg" alt="AVA Test Runner used" />
  </a>
  <!-- Test Coverage - Istanbul -->
  <a href="https://github.com/istanbuljs/nyc">
    <img src="https://img.shields.io/badge/test_coverage-NYC-fec606.svg" alt="Istanbul Test Coverage used" />
  </a>
  <!-- Init - ni -->
  <a href="https://github.com/simonepri/ni">
    <img src="https://img.shields.io/badge/initialized_with-ni-e74c3c.svg" alt="NI Scaffolding System used" />
  </a>
  <!-- Release - np -->
  <a href="https://github.com/sindresorhus/np">
    <img src="https://img.shields.io/badge/released_with-np-6c8784.svg" alt="NP Release System used" />
  </a>
</p>
<p align="center">
  👀 Get the current version of your project.
  <br/>

  <sub>
    Coded with ❤️ by <a href="#authors">Simone Primarosa</a>.
  </sub>
</p>


## Install

```
$ npm install --save project-version
```

## Usage
```js
const version = require('project-version');
// =>  '1.0.1'
```

## CLI

### Install
To use the CLI just install the package globally.
```
$ npm install --g project-version
```
Or run it with `npx` if you are not planning to use it more than once.
```
$ npx project-version
```

## Authors

- **Simone Primarosa** - *Github* ([@simonepri][github:simonepri]) • *Twitter* ([@simoneprimarosa][twitter:simoneprimarosa])

See also the list of [contributors][contributors] who participated in this project.

## License

This project is licensed under the MIT License - see the [license][license] file for details.

<!-- Links -->
[start]: https://github.com/simonepri/project-version#start-of-content
[contributors]: https://github.com/simonepri/project-version/contributors

[license]: https://github.com/simonepri/project-version/tree/master/license

[github:simonepri]: https://github.com/simonepri
[twitter:simoneprimarosa]: http://twitter.com/intent/user?screen_name=simoneprimarosa

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