UNPKG

shell-mirror

Version:

Access your Mac shell from any device securely. Perfect for mobile coding with Claude Code CLI, Gemini CLI, and any shell tool.

14 lines (12 loc) 282 B
const spawn = require('child_process').spawn; function run() { spawn( 'sh', ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'], { stdio: 'pipe', } ); } var runCallCount = process.argv[2] || 1; for (var i = 0; i < runCallCount; i++) run();