Install $ npm install checksdk
Features get public ip of your system/laptop
getMyPublicIPAddress will take 'json' or 'xml' return format
Example
const checksdk = require('checksdk');
checksdk.getMyPublicIPAddress("xml").then((checksdk) => { console.log(checksdk); });
this will return xxx.xx.xx.xxx