mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
15 lines
349 B
JavaScript
15 lines
349 B
JavaScript
const path = require("node:path");
|
|
|
|
console.log("p start");
|
|
const child = Bun.spawn(["node", path.resolve(import.meta.dir, "ipc-child-node.js")], {
|
|
ipc(message) {
|
|
console.log("p", message);
|
|
process.exit(0);
|
|
},
|
|
stdio: ["ignore", "inherit", "inherit"],
|
|
serialization: "json",
|
|
});
|
|
|
|
child.send("I am your father");
|
|
console.log("p end");
|