Tag

child_process

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
Sep 11, 2024 · Backend Development

Master Node.js Child Processes: exec, spawn, fork & IPC Explained

This guide explains the Node.js child_process module, covering its purpose, the four creation methods (exec, execFile, spawn, fork), how to handle output streams, inter‑process communication, best‑practice management tips, and when to choose child processes over worker threads.

Backend DevelopmentIPCNode.js
0 likes · 14 min read
Master Node.js Child Processes: exec, spawn, fork & IPC Explained
Sohu Tech Products
Sohu Tech Products
Dec 20, 2023 · Information Security

Command Injection Vulnerabilities in Node.js: Analysis and Prevention

The article examines how command‑injection flaws in popular Node.js npm packages such as find‑exec and fs‑git arise from unsafe concatenation of user input into shell commands, and recommends rigorous validation, using execFile or spawn, and regular dependency audits to prevent catastrophic system compromise.

CVESecure Codingchild_process
0 likes · 11 min read
Command Injection Vulnerabilities in Node.js: Analysis and Prevention
System Architect Go
System Architect Go
Feb 20, 2019 · Backend Development

Calling Python Functions from Node.js Using a Command‑Line Interface

This article explains a lightweight technique for invoking Python functions directly from Node.js by converting the Python script into a CLI with the Fire library and executing it via Node's child_process spawn, avoiding the overhead of REST or RPC services.

CLINode.jsPIL
0 likes · 4 min read
Calling Python Functions from Node.js Using a Command‑Line Interface