esp-flasher-stub
v1.2.2
Published
Stub JSON files for ESP flasher
Readme
esp-flasher-stub
ESP Flasher Stub is a set of small firmware programs (stubs) that run on Espressif ESP chips to enable fast and reliable flash programming via esptool and esp-serial-flasher. For the detailed introduction of the stubs, please refer to the esp-flasher-stub repository.
This npm package (esp-flasher-stub) distributes the pre-built stub JSON files for all supported ESP chips. These files can be used by frontend projects to interact with ESP devices.
How to Use
Install the package:
npm install esp-flasher-stubImport a stub using ES Module JSON import attributes [^1]:
import esp32s31Stub from 'esp-flasher-stub/esp32s31.json' with { type: 'json' }More Information
For full documentation, supported chips, build instructions, and contribution guidelines, visit the GitHub repository: https://github.com/espressif/esp-flasher-stub
The bundled stubs are from esp-flasher-stub v1.2.2. See the release notes at: https://github.com/espressif/esp-flasher-stub/releases/tag/v1.2.2
License
Copyright (c) 2026 Espressif Systems (Shanghai) Co., Ltd.
See https://github.com/espressif/esp-flasher-stub#license for the license of the source code.
[^1]: This feature requires Node.js 20.10+ or a modern JavaScript build tool such as Vite, Webpack, Parcel, and Turbopack. In older runtimes, you may need to use assert { type: 'json' } or other compatible import syntax. See ES Module JSON import attributes for more details.
