
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
node-runner-ts
Advanced tools
Node runner is a powerful tool developed to optimize and speed up the process execution flow in your applications.
Node runner is a powerful tool developed to optimize and speed up the process execution flow in your applications. It supports single, parallel and sequential execution, in addition to having a process orchestrator, ensuring efficient task management, high performance and scalability. Node Runner has a flexible, easy-to-integrate architecture that makes it the ideal choice for handling multiple operations, enabling your application to achieve higher levels of efficiency and responsiveness. Develop, execute and manage processes in an uncomplicated way.
npm i node-runner-ts
Import the library in your code
import { Runner } from "node-runner-ts";
Customize your runner according to your needs, use the implementation of the RunnerType interface to define the mandatory methods, the class must be exported as standard, otherwise it will not be interpreted.
import { RunnerType } from "node-runner-ts";
export default class MyRunner implements RunnerType {
async configure() {
// Config dependencies
}
async run() {
// Main logic to be executed when the executor is triggered.
}
}
The Runner.exec method is designed to run a single specified process or module
import { Runner } from "node-runner-ts";
void Runner.exec({
path: path.resolve(__dirname, "app", "server.runner.ts"),
forever: true,
});
The Runner.parallelism method allows you to run multiple processes or modules simultaneously, improving efficiency and performance.
import { Runner } from "node-runner-ts";
void Runner.parallelism(
{
path: path.resolve(__dirname, "app", "server.runner.ts"),
forever: true,
},
{
path: path.resolve(__dirname, "worker", "worker.ts"),
forever: false,
}
);
Use a runner action to orchestrate and run your modules/processes.
The default action orchestrator.
void Runner.runnerActions({
test: {
path: "./test/test.runner",
forever: true,
},
});
Have one or more actions run modules in parallel.
void Runner.runnerActions({
server: {
parallelism: [
{
path: "./app/run",
forever: true,
},
{
path: "./test/test.runner",
forever: true,
},
],
},
});
Create your own orchestrator according to your needs.
import path from "node:path";
import { Runner, RunnerOptions } from "node-runner-ts";
export enum ActionType {
Test = "Test",
Server = "Server",
MicroserviceEmail = "MicroserviceEmail",
ApolloGraphql = "ApolloGraphql",
}
const OPTIONS: Record<string, RunnerOptions> = {
[ActionType.ApolloGraphql]: {
path: path.resolve(__dirname, "app", "graphql", "graphql.runner.ts"),
forever: true,
},
[ActionType.MicroserviceEmail]: {
path: path.resolve(__dirname, "microservice", "setup.ts"),
forever: true,
},
[ActionType.Test]: {
path: "./test/test-runner",
forever: false,
},
};
const customActions = async (action: ActionType): Promise<void> => {
switch (action) {
case ActionType.ApolloGraphql:
case ActionType.MicroserviceEmail:
return Runner.parallelism(
OPTIONS[ActionType.ApolloGraphql],
OPTIONS[ActionType.MicroserviceEmail]
);
default:
return Runner.exec(OPTIONS[ActionType.Test]);
}
};
FAQs
Node runner is a powerful tool developed to optimize and speed up the process execution flow in your applications.
We found that node-runner-ts 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.