UNPKG

@monkeyscanjump/cloudflare-dyndns

Version:

A robust TypeScript application that automatically updates Cloudflare DNS records when your public IP address changes. Perfect for maintaining consistent domain names for home servers, WireGuard VPN, self-hosted services, or any system with a dynamic IP a

27 lines (20 loc) 749 B
#!/usr/bin/env node /** * Post-installation script for cloudflare-dyndns * Sets up necessary directories and configuration files after npm install * Handles both global and local installations differently * @module postinstall */ const utils = require('./utils'); console.log('Running post-installation setup for cloudflare-dyndns...'); // Ensure dist/scripts directory exists (needed for TypeScript output) utils.ensureDistScriptsDir(); // Check if this is running after a global install if (utils.isGlobalInstall()) { console.log('Global installation detected'); // Create the global config directory if (utils.ensureGlobalConfigDir()) { utils.copyEnvExample(); } } console.log('Post-installation completed successfully!');