{"_id":"public-address","_rev":"250380","name":"public-address","description":"Resolve public IP address and hostname","dist-tags":{"latest":"0.1.2"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"time":{"modified":"2021-06-03T16:12:23.000Z","created":"2013-12-12T21:28:59.194Z","0.1.2":"2016-11-24T07:56:46.164Z","0.1.1":"2014-05-13T06:06:15.089Z","0.1.0":"2013-12-12T21:28:59.194Z"},"users":{},"author":{"name":"Andris Reinman"},"repository":{"type":"git","url":"git://github.com/andris9/public-address.git"},"versions":{"0.1.2":{"name":"public-address","version":"0.1.2","description":"Resolve public IP address and hostname","main":"index.js","scripts":{"test":"nodeunit tests/"},"repository":{"type":"git","url":"git://github.com/andris9/public-address.git"},"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/public-address/issues"},"homepage":"https://github.com/andris9/public-address","devDependencies":{"nodeunit":"~0.10.2"},"gitHead":"135d4211185b2873bdf5d603426067429c007c60","_id":"public-address@0.1.2","_shasum":"f95f3e0cf28b89f965b0f188fd1267ac0856552f","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"andris","email":"andris@kreata.ee"},"dist":{"shasum":"f95f3e0cf28b89f965b0f188fd1267ac0856552f","size":1574,"noattachment":false,"key":"/public-address/-/public-address-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/public-address/download/public-address-0.1.2.tgz"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/public-address-0.1.2.tgz_1479974204093_0.7122597198467702"},"directories":{},"publish_time":1479974206164,"_cnpm_publish_time":1479974206164,"_hasShrinkwrap":false},"0.1.1":{"name":"public-address","version":"0.1.1","description":"Resolve public IP address and hostname","main":"index.js","scripts":{"test":"nodeunit tests/"},"repository":{"type":"git","url":"git://github.com/andris9/public-address.git"},"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/public-address/issues"},"homepage":"https://github.com/andris9/public-address","devDependencies":{"nodeunit":"~0.8.2"},"_id":"public-address@0.1.1","dist":{"shasum":"58bdea323c88287b6914159312454b804ca9eeaf","size":1420,"noattachment":false,"key":"/public-address/-/public-address-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/public-address/download/public-address-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1399961175089,"_hasShrinkwrap":false,"_cnpm_publish_time":1399961175089},"0.1.0":{"name":"public-address","version":"0.1.0","description":"Resolve public IP address and hostname","main":"index.js","scripts":{"test":"nodeunit tests/"},"repository":{"type":"git","url":"git://github.com/andris9/public-address.git"},"author":{"name":"Andris Reinman"},"license":"MIT","bugs":{"url":"https://github.com/andris9/public-address/issues"},"homepage":"https://github.com/andris9/public-address","devDependencies":{"nodeunit":"~0.8.2"},"readmeFilename":"README.md","_id":"public-address@0.1.0","dist":{"shasum":"92e6ae2d69f90da0eaf7ca5a74f1d3e7aadc8db5","size":1741,"noattachment":false,"key":"/public-address/-/public-address-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/public-address/download/public-address-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.14","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@kreata.ee"}],"directories":{},"publish_time":1386883739194,"_cnpm_publish_time":1386883739194,"_hasShrinkwrap":false}},"readme":"# public-address\n\nResolve the public IP address and hostname of your current machine.\n\nThis module makes a HTTP request to https://www.ipify.org/ IP resolving service.\n\n## Installation\n\n    npm install public-address\n\n## Usage\n\n    var publicAddress = require(\"public-address\");\n    publicAddress([options,] callback);\n\nWhere\n\n  * **options** - an optional options object. Everything in this object is passed to the HTTP request object (eg. `agent`, `localAddress` etc.)\n  * **callback** - function to run once the resolving succeeded or failed. Has error object and response data as arguments\n\nThe data argument for `callback` has the following properties\n\n  * **address** - public IP address\n  * **hostname** - (if available) hostname of the IP address\n\n## Example\n\nResolve public IP:\n\n    publicAddress(function(err, data){\n        console.log(err || data);\n    });\n\nExample response:\n\n    {\n        \"address\": \"193.152.61.139\",\n        \"hostname\": \"gprs-inet-61-139.example.com\"\n    }\n\n## License\n\n**MIT**\n","_attachments":{},"homepage":"https://github.com/andris9/public-address","bugs":{"url":"https://github.com/andris9/public-address/issues"},"license":"MIT"}