# pdb-guid

> Library for extracting GUIDs from PE and PDB files without loading the entire file into memory

Latest version **2.1.2** (published 2026-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install pdb-guid
pnpm add pdb-guid
yarn add pdb-guid
bun add pdb-guid
```

Provides the command `pdb-guid`.

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support.

## Facts

| | |
|---|---|
| Version | 2.1.2 |
| Published | 2026-09-30 |
| First published | 2023-09-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=20 |
| Dependencies | 2 |
| Unpacked size | 52.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | BugSplat |
| Maintainers | bugsplat |
| Keywords | pdb, pe, exe, dll, file, guid, windbg, cdb, msbuild, visual, studio |

## Links

- npm: https://www.npmjs.com/package/pdb-guid
- Repository: https://github.com/BugSplat-Git/pdb-guid
- Homepage: https://github.com/BugSplat-Git/pdb-guid#readme
- Issues: https://github.com/BugSplat-Git/pdb-guid/issues
- npm.io page: https://npm.io/package/pdb-guid

## Dependencies (2)

- [command-line-args](https://npm.io/package/command-line-args.md) ^5.2.1
- [command-line-usage](https://npm.io/package/command-line-usage.md) ^7.0.1

## 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

- 2.1.2 (latest) — 2026-09-30
- 2.1.1 — 2026-04-01
- 2.1.0 — 2026-04-01
- 2.0.0 — 2024-05-24
- 1.0.7 — 2023-10-09
- 1.0.6 — 2023-10-06
- 1.0.5 — 2023-09-21
- 1.0.4 — 2023-09-16
- 1.0.3 — 2023-09-16
- 1.0.2 — 2023-09-16
- 1.0.1 — 2023-09-16
- 1.0.0 — 2023-09-16

## README

[![bugsplat-github-banner-basic-outline](https://user-images.githubusercontent.com/20464226/149019306-3186103c-5315-4dad-a499-4fd1df408475.png)](https://bugsplat.com)
<br/>
# <div align="center">BugSplat</div> 
### **<div align="center">Crash and error reporting built for busy developers.</div>**
<div align="center">
    <a href="https://twitter.com/BugSplatCo">
        <img alt="Follow @bugsplatco on Twitter" src="https://img.shields.io/twitter/follow/bugsplatco?label=Follow%20BugSplat&style=social">
    </a>
    <a href="https://discord.gg/bugsplat">
        <img alt="Join BugSplat on Discord" src="https://img.shields.io/discord/664965194799251487?label=Join%20Discord&logo=Discord&style=social">
    </a>
</div>

<br/>

# pdb-guid

A nifty little library for reading unique identifiers from pdb, exe, and dll files.

## Command Line

1. Install this package globally `npm i -g pdb-guid`
2. Run pdb-guid with `-h` to see the latest usage information:

```bash
bobby@BugSplat % ~ % pdb-guid -h

pdb-guid

  A command line utility and library for reading the GUID of a .pdb, .exe, or   
  .dll file.                                                                    

Usage

  --path string   Path to a .pdb, .exe, or .dll file. 
  -h, --help      Print this usage guide.             

Example

  pdb-guid path-to-exe-dll-or-pdb-file 

Links

  🐛 https://bugsplat.com                     
                                              
  💻 https://github.com/BugSplat-Git/pdb-guid 
                                              
  💌 support@bugsplat.com 
```

3. Run pdb-guid specifying a path to a pdb, exe, or dll file:

```bash
bobby@BugSplat % ~ % pdb-guid ./path/to/bugsplat.pdb
E546B55B6D214E86871B40AC35CD0D461
```

## API

1. Install this package locally `npm i @bugsplat/pdb-guid`.
2. Create a new instance of `PdbFile` by awaiting a call to the static factory function `PdbFile.createFromFile`. This method accepts files with a `.pdb` extension.

```ts
const pdbFile = await PdbFile.createFromFile('./path/to/bugsplat.pdb');
```

3. Create a new instance of `PeFile` by awaiting a call to the static factory function `PeFile.createFromFile`. This method accepts files with a `.exe` or `.dll` extension. 

```ts
const peFile = await PeFile.createFromFile('./path/to/bugsplat.exe');
```

4. The `guid` property of `PdbFile` and `PeFile` instances will contain the unique identifier for the file.

```ts
const guid = pdbFile.guid;
```

## 🐛 About

[BugSplat](https://bugsplat.com) is a software crash and error reporting service with support for [Windows Native C++](https://docs.bugsplat.com/introduction/getting-started/integrations/desktop/cplusplus), [Qt](https://docs.bugsplat.com/introduction/getting-started/integrations/cross-platform/qt), [Unreal Engine](https://docs.bugsplat.com/introduction/getting-started/integrations/game-development/unreal-engine) and [many more](https://docs.bugsplat.com/introduction/getting-started/integrations). BugSplat automatically captures critical diagnostic data such as stack traces, log files, and other runtime information. BugSplat also provides automated incident notifications, a convenient dashboard for monitoring trends and prioritizing engineering efforts, and integrations with popular development tools to maximize productivity and ship more profitable software.

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