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.

36 lines (27 loc) 606 B
#!/usr/bin/env node /* eslint no-process-env:0, no-process-exit:0 */ 'use strict'; const { spawnSync } = require('child_process'); function main(exit) { const args = ['install']; if (process.env.DEBUG) { args.push('--debug'); } if (process.env.TARGET_ARCH) { args.push('--target_arch=' + process.env.TARGET_ARCH); } let { status } = spawnSync('node-pre-gyp', args, { shell: true, stdio: 'inherit' }); if (status) { if (!exit) { throw new Error(status); } process.exit(1); } } module.exports = main; if (require.main === module) { main(true); }