1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-18 13:22:55 -05:00
denoland-deno/tests/registry/npm/@denotest/child-process-fork/1.0.0/index.js

15 lines
318 B
JavaScript

const path = require("path");
const childProcess = require("node:child_process");
function childProcessFork(path) {
const child = childProcess.fork(path);
child.on("exit", () => {
console.log("Done.");
});
}
module.exports = {
run() {
childProcessFork(path.join(__dirname, "forked_path.js"));
}
};