# cfv

> CFV is a cross-platform node.js library that can extract the file version from a valid PE file (.exe)

Latest version **1.2.0** (published 2021-07-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install cfv
pnpm add cfv
yarn add cfv
bun add cfv
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2021-07-11 |
| First published | 2021-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 49.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Krzysztof Saczuk |
| Maintainers | zakku |
| Keywords | cross-platform, file-version, file, info |

## Links

- npm: https://www.npmjs.com/package/cfv
- Repository: https://github.com/zakuciael/cfv
- npm.io page: https://npm.io/package/cfv

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.2.0 (latest) — 2021-07-11
- 1.1.0 — 2021-02-05
- 1.0.3 — 2021-01-31
- 1.0.2 — 2021-01-17

## README

# CFV

CFV is a cross-platform node.js library that can extract the file version from a valid PE file (.exe)

## Disclaimer

I've created this package by analyzing the python [**pefile**](https://pypi.org/project/pefile/) library, but I didn't
add any check for a non-valid PE files like they did.  
If you are going to use this package please first ensure that all files are valid PE files (.exe).

## API

### ``getFileVersion(path: PathLike | Buffer): Promise<string>``

``path`` - Path to the file or a raw representation of it.

### ``getProductVersion(path: PathLike | Buffer): Promise<string>``

``path`` - Path to the file or a raw representation of it.

### ``getFileProperties(path: PathLike | Buffer): Promise<Properties>``

``path`` - Path to the file or a raw representation of it.

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