UNPKG

@keeftraum/cloudflare-update-ip

Version:

A Python utility for batch updating, backing up, and restoring DNS records across one or more Cloudflare zones.This tool is designed for sysadmins and developers who need to automate DNS management tasks, such as updating IP addresses, replacing old recor

13 lines (9 loc) 444 B
#!/usr/bin/env node const { spawn } = require('child_process'); const path = require('path'); // Determine python executable const python = process.env.PYTHON || (process.platform === 'win32' ? 'python' : 'python3'); const script = path.join(__dirname, 'CloudflareUpdate.py'); const args = process.argv.slice(2); const child = spawn(python, [script, ...args], { stdio: 'inherit' }); child.on('exit', code => process.exit(code));