function getIpDataAsync(ip){
  return new Promise(function(resolve, reject){
    ipstack(ip, process.env.IPSTACK_API_KEY, function(err, data){
      if(err !== null) reject(err);
      else resolve(data);
    });
  });
}
Load environment variables from .env file, where API keys and passwords are configured. *