Node.js

Example


#!/usr/bin/env node

require('request-promise')({

    url: 'https://ipinfo.io',

    proxy: 'http://ip:port',
    
    })

.then(function(data){ console.log(data); },

    function(err){ console.error(err); });
      

Last updated