# rcedit

> Node module to edit resources of exe

Latest version **5.0.2** (published 2025-11-24) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 5.0.2 |
| Published | 2025-11-24 |
| First published | 2013-11-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >= 22.12.0 |
| Dependencies | 1 |
| Unpacked size | 2.2 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 195 |
| Maintainers | electronhq, electron-cfa |

## Links

- npm: https://www.npmjs.com/package/rcedit
- Repository: https://github.com/electron/node-rcedit
- Homepage: https://github.com/electron/node-rcedit#readme
- Issues: https://github.com/electron/node-rcedit/issues
- npm.io page: https://npm.io/package/rcedit

## Dependencies (1)

- [cross-spawn-windows-exe](https://npm.io/package/cross-spawn-windows-exe.md) ^1.1.0

## Recent versions

- 5.0.2 (latest) — 2025-11-24
- 5.0.1 — 2025-11-14
- 5.0.0 — 2025-11-07
- 4.0.1 — 2023-11-07
- 4.0.0 — 2023-08-25
- 3.1.0 — 2023-08-04
- 3.0.2 — 2023-08-02
- 3.0.1 — 2021-07-13
- 3.0.0 — 2020-12-14
- 2.3.0 — 2020-12-02
- 2.2.0 — 2020-05-18
- 2.1.1 — 2020-03-10
- 2.1.0 — 2019-11-03
- 2.0.0 — 2019-05-29
- 1.1.2 — 2019-05-02
- … 15 more at https://npm.io/package/rcedit/versions

## README

# node-rcedit

[![Test](https://github.com/electron/node-rcedit/actions/workflows/test.yml/badge.svg)](https://github.com/electron/node-rcedit/actions/workflows/test.yml)
[![NPM package](https://img.shields.io/npm/v/rcedit)](https://npm.im/rcedit)

Node module to edit resources of Windows executables.

## Requirements

On platforms other than Windows, you will need to have [Wine](https://winehq.org)
1.6 or later installed and in the system path.

> [!NOTE]
> Under the hood, this package relies on the [electron/rcedit](https://github.com/electron/rcedit)
> binary to perform operations. A vendored executable is in the `/bin/` folder of the source code.
> The latest version of this package uses `rcedit@2.0.0`.

## Usage

```javascript
import { rcedit } from 'rcedit'
```

### `async rcedit(exePath, options)`

`exePath` is the path to the Windows executable to be modified.

`options` is an object that can contain following fields:

* `version-string` - An object containing properties to change the `exePath`'s
  version string.
* `file-version` - File's version to change to.
* `product-version` - Product's version to change to.
* `icon` - Path to the icon file (`.ico`) to set as the `exePath`'s default icon.
* `requested-execution-level` - Requested execution level to change to, must be
  either `asInvoker`, `highestAvailable`, or `requireAdministrator`. See
  [requestedExecutionLevel](https://learn.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2015/deployment/trustinfo-element-clickonce-application?view=vs-2015#requestedexecutionlevel) for
  more details.
* `application-manifest` - String path to a local manifest file to use.
  See [Application manifest](https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests)
  for more details.
* `resource-string` - An object in the form of `{ [id]: value }` to add to the
  [string table](https://docs.microsoft.com/en-us/windows/win32/menurc/stringtable-resource).

Returns a `Promise` with no value.

## Building

* Clone the repository
* Run `yarn install`
* Run `yarn test` to run the tests

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