bm2
v1.1.1
Published
[DEPRECATED] BM2 is deprecated in favor of pboss (https://github.com/Procboss/pboss). This package is a backwards-compatible wrapper around pboss.
Maintainers
Readme
⚡ BM2 (Deprecated) — Migrated to ProcBoss (pboss)
⚠️ IMPORTANT NOTICE: BM2 is deprecated in favor of ProcBoss (pboss).
BM2 has been renamed and evolved into ProcBoss (
pboss). All active development, bug fixes, features, and updates have moved to the new repository and package:
- GitHub Repository: https://github.com/Procboss/pboss
- npm Package: https://www.npmjs.com/package/pboss
- Website: https://procboss.com
This package (
bm2) now serves as a backwards-compatible wrapper that automatically forwards all CLI commands and programmatic API calls topboss.
🚀 Migration Guide
Please update your installations and dependencies to use pboss directly:
1. Global CLI Migration
Uninstall bm2 and install pboss:
# Bun
bun remove -g bm2
bun add -g pboss
# npm
npm uninstall -g bm2
npm install -g pbossRun commands using pboss:
# Before:
bm2 start server.ts --name api
# Now:
pboss start server.ts --name api2. Project Dependency Migration
# Bun
bun remove bm2
bun add pboss
# npm / pnpm / yarn
npm uninstall bm2
npm install pboss3. Programmatic API Migration
Update your imports:
// Before:
import BM2, { list, start } from "bm2";
import type { StartOptions } from "bm2/types";
// Now:
import PBoss, { list, start } from "pboss";
import type { StartOptions } from "pboss/types";
const pboss = new PBoss();
await pboss.connect();
await pboss.start({ script: "./server.ts", name: "my-api" });📦 Compatibility Wrapper Details
If your existing environment still invokes bm2, this package (bm2@>=1.1.0) will:
- Transparently execute
pbossCLI with all provided arguments. - Pass through stdin, stdout, stderr, and exit codes.
- Forward signals (SIGINT, SIGTERM, SIGHUP).
- Re-export all classes, methods, and TypeScript types from
pboss. - Emit a deprecation notice to notify developers to complete the migration.
For complete documentation, CLI guides, and features, visit the ProcBoss repository.
📄 License
GPL-3.0-only
