包详细信息

win-version-info

vweevers38.4kMIT6.0.1

Windows-only native addon to read version info from executables

exe, executable, productname, productversion

自述文件

win-version-info

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

npm status Node version Test Standard Common Changelog

Example

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 do:

npm install win-version-info

License

MIT. The main body of this project comes from ShowVer © Ted Peck 2002. Converting between UTF-16 and UTF-8 made possible by UTF8Conversion (Apache License 2.0) © 2011 Giovanni Dicanio.

更新日志

Changelog

6.0.1 - 2022-06-12

Fixed

  • Restore 32-bit prebuild (acb9b62) (Vincent Weevers)

6.0.0 - 2022-06-05

The 32-bit prebuild was restored in 6.0.1.

Changed

  • Breaking: drop Node.js 10 and 12 (9c7e4fa) (Vincent Weevers)
  • Breaking: drop 32-bit prebuild (cb1fdec) (Vincent Weevers)
  • Replace use of std::ptr_fun (8f5ac34) (Vincent Weevers)

5.0.1 - 2021-11-11

Fixed

  • Include prebuilds in npm package (54fadf8) (Vincent Weevers)

5.0.0 - 2021-11-11

This version was not published to npm for lack of prebuilds; fixed in 5.0.1.

Changed

  • Breaking: drop Node.js 8 (b0add44) (Vincent Weevers)
  • Move to Node-API with prebuildify (cf5c6c7) (Vincent Weevers).

4.0.0 - 2021-06-07

Changed

  • Breaking: bump prebuild-install from 5.x to 6.x (37bd9c9) (Vincent Weevers)
  • Bump standard devDependency (d74d7a8) (Vincent Weevers)

Added

  • Run tests & prebuild for node 16 (#21) (764c868) (Tim Perry)

3.1.1 - 2020-08-16

Fixed

3.1.0 - 2020-08-16

Changed

Added

3.0.1 - 2019-06-11

Changed

  • Upgrade prebuild from ^8.2.1 to ^9.0.0 (#6)

Fixed

  • Don't skip building if cross-compiling (#7) (@pimterry)

3.0.0 - 2019-06-01

Changed

  • Update dependencies to enable Greenkeeper (#3)
  • Move changelog to CHANGELOG.md (7e3bb93)
  • Tweak README.md (8b37083)

Added

Removed

Fixed

2.1.0 - 2018-11-18

Changed

  • Remove (need for) os filter in package.json
  • Update nan from ~2.10.0 to ~2.11.1
  • Update prebuild-install from ~4.0.0 to ~5.2.1
  • Update prebuild devDependency from ~7.6.0 to ~8.1.2

Added

  • Add standard

2.0.0 - 2018-05-19

Added

  • Add prebuilds for Node 8, 9 and 10

Removed

  • Breaking: Drop Node 4, 5 and 7

2.0.0-beta1 - 2016-12-03

Added

  • Add prebuilds for Node 4 - 7
  • Add CLI

Fixed

  • Trim values
  • Ignore empty values and 0.0.0.0 versions

Removed

  • Drop Node < 4 support

1.0.1 - 2016-03-27

Fixed

  • Fix installation of prebuilds

1.0.0 - 2016-03-27

:seedling: Initial release.