Registry / devops / electron-reactive-event-cli

electron-reactive-event-cli

JSON →
library1.0.120jsnpmunverified

CLI tool for generating type-safe Electron IPC bindings. Current stable version 1.0.120 but migrated to reactive-event-cli. Automatically creates typed event handlers and payloads for Electron main/renderer communication, reducing boilerplate and runtime errors. Compared to electron-ipc or typed-ipc, this provides a codegen approach with React integration. Release cadence is irregular; last update was migration-related.

npm install electron-reactive-event-cli
INSTALL
IMPORT
SIG · ELECTRON-REACTIVE-
E
electron-reactive-event-cli
devopsjavascriptv1.0.120
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

runCommand
import { runCommand } from 'reactive-event-cli'
const { runCommand } = require('electron-reactive-event-cli')
Renamed package; use reactive-event-cli instead.
generateBindings
import { generateBindings } from 'reactive-event-cli'
import { generateBindings } from 'electron-reactive-event-cli'
This function generates type-safe IPC bindings.
default
import cli from 'reactive-event-cli'
import cli from 'electron-reactive-event-cli'
Default export is the CLI entry point.

This shows how to import and run the CLI programmatically to generate code.

import { runCommand } from 'reactive-event-cli'; const command = 'generate --watch'; runCommand(command).then(() => console.log('Done.'));
reactive-event-cli --version
Debug
Known issues
breakingPackage renamed to reactive-event-cli. electron-reactive-event-cli is deprecated and will not receive updates.
fix
Install reactive-event-cli instead: npm uninstall electron-reactive-event-cli && npm install reactive-event-cli
affects: >=1.0.0
deprecatedThe CLI uses CommonJS internally; ESM imports may not work reliably.
fix
Use dynamic import or CJS require if using CommonJS project.
affects: >=1.0.0
gotchaCodegen output overwrites files without confirmation by default.
fix
Use --dry-run flag to preview changes before applying.
affects: >=1.0.0
gotchaRequires Node.js 14+ and Electron main/renderer processes running.
fix
Ensure proper Electron environment before running CLI.
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'electron-reactive-event-cli'
Package renamed. Tried to require old package name.
fix
npm uninstall electron-reactive-event-cli && npm install reactive-event-cli
Unsupported operation: Not implemented
Running CLI outside Electron context (e.g., pure Node.js).
fix
Run CLI from within an Electron project where main and renderer processes exist.
Upgrade
Version history
1.0.120latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
electron-reactive-event-cli — npm install electron-reactive-event-cli · libregistry