Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toyobayashi/windows-file-version-info
C# FileVersionInfo class
https://github.com/toyobayashi/windows-file-version-info
Last synced: 2 days ago
JSON representation
C# FileVersionInfo class
- Host: GitHub
- URL: https://github.com/toyobayashi/windows-file-version-info
- Owner: toyobayashi
- Created: 2022-04-17T14:51:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T03:04:32.000Z (over 2 years ago)
- Last Synced: 2024-10-11T20:58:35.610Z (27 days ago)
- Language: C
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# windows-file-version-info
This package works on Windows only.
[FileVersionInfo MSDN](https://docs.microsoft.com/en-us/dotnet/api/system.diagnostics.fileversioninfo)
## Usage
```js
const { FileVersionInfo } = require('@tybys/windows-file-version-info')const info = FileVersionInfo.getVersionInfo('C:\\path\\to\\exe\\or\\dll')
console.log(info.fileDescription)
console.log(info.fileVersion)
console.log(info.toString())
console.log(JSON.stringify(info, null, 2))
```## API
```ts
export declare interface IFileVersionInfo {
readonly comments: string
readonly companyName: string
readonly fileBuildPart: number
readonly fileDescription: string
readonly fileMajorPart: number
readonly fileMinorPart: number
readonly fileName: string
readonly filePrivatePart: string
readonly fileVersion: string
readonly internalName: string
readonly isDebug: boolean
readonly isPatched: boolean
readonly isPreRelease: boolean
readonly isPrivateBuild: boolean
readonly isSpecialBuild: boolean
readonly language: string
readonly legalCopyright: string
readonly legalTrademarks: string
readonly originalFilename: string
readonly privateBuild: string
readonly productBuildPart: number
readonly productMajorPart: number
readonly productMinorPart: number
readonly productName: string
readonly productPrivatePart: number
readonly productVersion: string
readonly specialBuild: string
}export declare class FileVersionInfo implements IFileVersionInfo {
/* ...from IFileVersionInfo... */private constructor (external: object)
toString (): string
toJSON (): IFileVersionInfo
static getVersionInfo (fileName: string): FileVersionInfo
}
```