# get-installed-package-version

> Gets version of currently installed package

Latest version **0.0.1** (published 2018-12-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install get-installed-package-version
pnpm add get-installed-package-version
yarn add get-installed-package-version
bun add get-installed-package-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.0.1 |
| Published | 2018-12-21 |
| First published | 2018-12-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 35.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yan Brodetsky |
| Maintainers | ianbrode |
| Keywords | version, check, package |

## Links

- npm: https://www.npmjs.com/package/get-installed-package-version
- Homepage: https://github.com/ianbrode/get-package-version#readme
- Issues: https://github.com/ianbrode/get-package-version/issues
- npm.io page: https://npm.io/package/get-installed-package-version

## Recent versions

- 0.0.1 (latest) — 2018-12-21

## README

# Get Installed Package Version

Checks if package is installed and if yes - returns package version.

## How to use

```
const checkPackages = require('get-package-version')

const versions = checkPackage('nuxt fs');

console.log(vesions)

// {nuxt: '2.3.4', fs: null}
// 'fs' has no 'package.json'

const versions2 = checkPackage(['vue-loader', 'randomModuleIJustInvented'])

console.log(vesions2)
// {vue-loader: '15.4.2', randomModuleIJustInvented: null}

```

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