win-version-info

2019-02-13 admin

win-version-info是什么

什么是win-version-info,Windows-only native addon to read version info from executables

win-version-info使用教程帮助文档

win-version-info

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

npm status AppVeyor build status Dependency status JavaScript Style Guide

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

Changelog

2.1.0

  • Remove (need for) os filter in package.json
  • Add standard
  • 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

2.0.0

  • Drop Node 4, 5 and 7
  • Add prebuilds for Node 8, 9 and 10

2.0.0-beta1

  • Drop Node < 4 support
  • Trim values
  • Ignore empty values and 0.0.0.0 versions
  • Prebuilds for Node 4 - 7
  • Add CLI

License

MIT © 2016-present Vincent Weevers.

Acknowledgements

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-53659.html

文章标题:win-version-info

回到顶部