1.2.1 • Published 3 years ago

spawnpassthru v1.2.1

Weekly downloads
16
License
MIT
Repository
github
Last release
3 years ago

spawnPassthru

nodejs ChildProcess.spawn with stdio:inherit.

Installation

npm i spawnpassthru

or as a development-only dependency:

npm i spawnpassthru --save-dev

Usage

Same as the standard NodeJS options for ChildProcess.spawn().

All params are optional except for the exe path.

const spawnPassthru = require("spawnpassthru");


const childProcess = await spawnPassthru("telnet towel.blinkenlights.nl");


const childProcess2 = await spawnPassthru(
	/*exe path*/ "/path/to/exe/chrome", 
	
	/*params*/ [
		"--headless", 
		"--disable-gpu", 
		"--remote-debugging-port=9222", 
		// "--ignore-certificate-errors", 
		// "--ignore-urlfetcher-cert-requests", 
		"--allow-insecure-localhost", 
		"--enable-logging", 
		"--v=1", 
		"https://127.0.0.1:8111/index.html"
	],

	/*ChildProcess options*/ {}, 

	/*seconds until SIGINT terminate process; 0 to disable.*/ 0, 

	/*string to send to stdin*/ "",
	/*seconds to wait before sending string to stdin*/ 5
);

// console.log(childProcess.pid);
// childProcess.kill("SIGINT");
1.2.0

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago