First of all, add to your .env
file tis code:
FREEDNS_URL=PUT YOUR URL HERE!!!
Then you can run it:
//check IP changes every 1 sec:
let service = FreeDNS.startService(); //start service
clearInterval(service); //close service
//update just one time:
FreeDNS.updateDns();
You can also use it alongside express
.