# win-version-info

> Windows-only native addon to read version info from executables

Latest version **6.0.1** (published 2022-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install win-version-info
pnpm add win-version-info
yarn add win-version-info
bun add win-version-info
```

Provides the commands `version-info`, `win-version-info`.

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.0.1 |
| Published | 2022-06-12 |
| First published | 2016-03-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/win-version-info) |
| Module format | CommonJS |
| Node | >=14 |
| Dependencies | 2 |
| Unpacked size | 486 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 19 |
| Author | Vincent Weevers |
| Maintainers | vweevers |
| Keywords | exe, executable, productname, productversion, version, versioninfo, windows |

## Links

- npm: https://www.npmjs.com/package/win-version-info
- Repository: https://github.com/vweevers/win-version-info
- Issues: https://github.com/vweevers/win-version-info/issues
- npm.io page: https://npm.io/package/win-version-info

## Dependencies (2)

- [napi-macros](https://npm.io/package/napi-macros.md) ^2.0.0
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.3.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 6.0.1 (latest) — 2022-06-12
- 6.0.0 — 2022-06-05
- 5.0.1 — 2021-11-11
- 3.1.1 — 2020-08-16
- 3.0.1 — 2019-06-11
- 3.0.0 — 2019-06-01
- 2.1.0 — 2018-11-18
- 2.0.0 — 2018-05-19
- 1.0.1 — 2016-03-27
- 1.0.0 — 2016-03-27

## README

# win-version-info

**Windows-only native addon to read version info from executables. A noop on other platforms.**

[![npm status](http://img.shields.io/npm/v/win-version-info.svg)](https://www.npmjs.org/package/win-version-info)
[![Node version](https://img.shields.io/node/v/win-version-info.svg)](https://www.npmjs.com/package/win-version-info)
[![Test](https://img.shields.io/github/workflow/status/vweevers/win-version-info/Test?label=test)](https://github.com/vweevers/win-version-info/actions/workflows/test.yml)
[![Standard](https://img.shields.io/badge/standard-informational?logo=javascript\&logoColor=fff)](https://standardjs.com)
[![Common Changelog](https://common-changelog.org/badge.svg)](https://common-changelog.org)

## Example

```js
const vi = require('win-version-info')
console.log(vi(process.argv[2]))
```

```
> node example "C:\Program Files (x86)\Firefox Developer Edition\firefox.exe"
{ FileVersion: '46.0.0.5903',
  LegalCopyright: '©Firefox and Mozilla Developers; available under the MPL 2 license.',
  CompanyName: 'Mozilla Corporation',
  FileDescription: 'FirefoxDeveloperEdition',
  ProductVersion: '46.0a2',
  InternalName: 'FirefoxDeveloperEdition',
  LegalTrademarks: 'Firefox is a Trademark of The Mozilla Foundation.',
  OriginalFilename: 'firefox.exe',
  ProductName: 'FirefoxDeveloperEdition',
  BuildID: '20160229004006' }
```

## Install

With [npm](https://npmjs.org) do:

```
npm install win-version-info
```

## License

[MIT](./LICENSE). The main body of this project comes from [ShowVer](http://www.codeproject.com/Articles/2457/ShowVer-exe-command-line-VERSIONINFO-display-progr) © Ted Peck 2002. Converting between UTF-16 and UTF-8 made possible by [UTF8Conversion](https://code.msdn.microsoft.com/C-UTF-8-Conversion-Helpers-22c0a664) ([Apache License 2.0](http://spdx.org/licenses/Apache-2.0.html)) © 2011 Giovanni Dicanio.

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