# product-version

> Get the version of the current system. Example: v0.10.28

Latest version **0.1.8** (published 2014-06-22) · MIT license · 0 weekly downloads

## Install

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

Provides the command `product-version`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2014-06-22 |
| First published | 2014-06-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | jalal hejazi |
| Maintainers | jalalhejazi |
| Keywords | cli, bin, os, osx, operating, system, platform, version |

## Links

- npm: https://www.npmjs.com/package/product-version
- Repository: https://github.com/jalalhejazi/product-version
- Issues: https://github.com/jalalhejazi/product-version/issues
- npm.io page: https://npm.io/package/product-version

## Dependencies (1)

- [minimist](https://npm.io/package/minimist.md) ^0.1.0

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.1.8 (latest) — 2014-06-22
- 0.1.7 — 2014-06-22
- 0.1.6 — 2014-06-22
- 0.1.5 — 2014-06-22
- 0.1.4 — 2014-06-22

## README

# Product-versions

## use the commandLine with node

> Get the OS X version of the current system. Example: `10.9.3`

> Get the NODE version of the current system. Example: `v0.10.28`


## Install npm dependencies

```sh
$ npm install
```


## mocha Test

```js
$ npm test
or just type mocha anywhere
$ mocha
```


```js
var assert = require('assert');

it('should return the current node version', function (cb) {
	require('./node.js')(function (err, version) {
		console.log('NODE:', version);
		assert(!err, err);
		assert(version.length > 0);
		cb();
	});
});

it('should return the current OSX version', function (cb) {
	require('./osx.js')(function (err, version) {
		console.log('OSX:', version);
		assert(!err, err);
		assert(version.length > 0);
		cb();
	});
});
```


## CommandLine install --global

```sh
$ npm install -g product-version
```

### just use the command: product-version 
```sh
$ product-version --help

Example
  $ product-version
  v0.10.28
```

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