
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
back-packed child-process with callback stack and more batteries included
runTask().then(result => {})
actionsrunQueueTask().then(result => {})
api to enqueue worker requests (prevent overload/enable backpressure)npm i facehugger
const { FaceHugger } = require("facehugger");
const moduleFile = "./../../test/TestProcess.js";
const log = new Logger({level: "DEBUG"}); //e.g. log4bro
const config = {
autoRestart: true,
forkDelay: 10
};
const faceHugger = new FaceHugger(moduleFile, log, config);
faceHugger.start({}); //you can pass init data
//some available events
faceHugger.once("ready", () => {});
faceHugger.on("restart", () => {});
faceHugger.on("close", () => {});
faceHugger.on("message", message => {});
faceHugger.on("metrics", metrics => {});
faceHugger.pullMetrics({}, 1000) //arg, timeout in ms
.then(metrics => {});
faceHugger.runTask("sometask", {}, 200) //taskname, arg, timeout in ms
.then(result => {})
.catch(error => {});
faceHugger.restart(); //kills and spawns child process
faceHugger.stop(); //kills child process and halts
const { ForkProcess } = require("facehugger");
const fork = new ForkProcess();
const processCallback = data => {
fork.log("ready");
//run something to keep the process alive
setInterval(() => {}, 1000);
};
const metricsCallback = cb => {
cb(null, {
//return whatever you like
});
};
//register callbacks (that can be called from the parent process)
fork.register("sometask", (data, callback) => {
process.nextTick(() => {
fork.log(data);
callback(null, "yeah");
});
});
fork.connect(processCallback, metricsCallback);
FAQs
back-packed child-process with callback stack
The npm package facehugger receives a total of 2 weekly downloads. As such, facehugger popularity was classified as not popular.
We found that facehugger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.