UNPKG

instatunnel

Version:

Expose your localhost to the internet instantly - the ngrok alternative that's 40% cheaper with superior UX

24 lines (18 loc) 534 B
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); function cleanup() { const binDir = path.join(__dirname, 'bin'); try { if (fs.existsSync(binDir)) { fs.rmSync(binDir, { recursive: true, force: true }); } console.log('✅ InstaTunnel CLI uninstalled successfully!'); } catch (error) { console.warn('⚠️ Some cleanup may be incomplete:', error.message); } } if (require.main === module) { cleanup(); } module.exports = { cleanup };