
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
task-container
Advanced tools
Node task runner. Allows user to create and run Node tasks in separate process.
Node async task runner. Allows user to create and run Node tasks in seperate process.
The child task should export a function that accepts input data object and a callback as the second parameter or must return a promise.
childTask.js w/ callback
module.exports = (data, callback) => {
setTimeout(() => {
callback([error], [result]);
}, 5000)
}
childTask.js w/ promise
module.exports = (data) => {
return new Promise((resolve, reject) => {
setTimeout(() => {
resolve([result]);
}, 5000);
});
}
main.js
const TaskContainer = require('task-container');
const TaskRunner = require('task-container').TaskRunner;
let tc = new TaskContainer();
tc.run(require.resolve('./childTask'), {test: 'hello world'}).then((result) => {
console.log(result);
});
//or
(async () => {
try {
let result = await tc.run(require.resolve('./childTask'), {test: 'hello world'});
} catch(ex){
console.log(ex);
}
})();
options
{
maxTaskRunners: [number], //default: require('os').cpus().length - 1,
maxCallsPerTaskRunner: [number], //default: Infinity
}
maxTaskRunners
Number of child processes to spawn for handling tasks. If all child processes are currently busy the task will be queued and handled as soon as a handler is free. Task are processed in FIFO order.
maxCallsPerTaskRunner
Number of times to call a child task before recycling the process (killing current child process and starting a new one). This can be used to manage memory leaks until they can be fixed.
script
This is the path to the module you wish to run as a task. This script should export a method which takes an object as it's first parameter and a callback as the second.
Example:
module.exports = (data, callback) => {
//do work here
callback([error], [result]);
}
data
Object you wish to be passed to the task.
callback
Method which gets called when task has completed.
Works the same as TaskContainer, but is for running a single task. do not use to run multiple tasks simultaneously, use TaskContainer
FAQs
Node task runner. Allows user to create and run Node tasks in separate process.
The npm package task-container receives a total of 7 weekly downloads. As such, task-container popularity was classified as not popular.
We found that task-container 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
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.