# pe-signature-offset

> Get position of PE signature

Latest version **1.0.0** (published 2016-12-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install pe-signature-offset
pnpm add pe-signature-offset
yarn add pe-signature-offset
bun add pe-signature-offset
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-12-19 |
| First published | 2016-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vincent Weevers |
| Maintainers | vweevers |
| Keywords | executable, pe, pe-coff, portable-executable, windows |

## Links

- npm: https://www.npmjs.com/package/pe-signature-offset
- Repository: https://github.com/vweevers/pe-signature-offset
- Issues: https://github.com/vweevers/pe-signature-offset/issues
- npm.io page: https://npm.io/package/pe-signature-offset

## Dependencies (1)

- [fs-read-exactly](https://npm.io/package/fs-read-exactly.md) ~1.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-12-19

## README

# pe-signature-offset

**Get position of [PE](https://en.wikipedia.org/wiki/Portable_Executable) signature. As specified by [Microsoft PE and COFF Specification 9.3](https://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/pecoff_v83.docx) <sup>[doc]</sup>, section 3.2:**

> After the MS-DOS stub, at the file offset specified at offset `0x3c`, is a 4-byte signature that identifies the file as a PE format image file. This signature is `PE\0\0` (the letters "P" and "E" followed by two null bytes).

[![npm status](http://img.shields.io/npm/v/pe-signature-offset.svg?style=flat-square)](https://www.npmjs.org/package/pe-signature-offset) [![node](https://img.shields.io/node/v/pe-signature-offset.svg?style=flat-square)](https://www.npmjs.org/package/pe-signature-offset) [![Travis build status](https://img.shields.io/travis/vweevers/pe-signature-offset.svg?style=flat-square&label=travis)](http://travis-ci.org/vweevers/pe-signature-offset) [![AppVeyor build status](https://img.shields.io/appveyor/ci/vweevers/pe-signature-offset.svg?style=flat-square&label=appveyor)](https://ci.appveyor.com/project/vweevers/pe-signature-offset) [![Dependency status](https://img.shields.io/david/vweevers/pe-signature-offset.svg?style=flat-square)](https://david-dm.org/vweevers/pe-signature-offset)

## example

```js
const getOffset = require('pe-signature-offset')

getOffset('file.exe', function (err, offset) {
  console.log(offset)
})
```

## `getOffset(mixed, callback)`

Where `mixed` is either a filename or a file descriptor.

## related

- [pe-signature](https://github.com/vweevers/pe-signature)

## install

With [npm](https://npmjs.org) do:

```
npm install pe-signature-offset
```

## license

[MIT](http://opensource.org/licenses/MIT) © Vincent Weevers

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