{"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","tarball":"http://registry-npm.ywwl.com/public-address/download/public-address-0.1.1.tgz","integrity":"sha512-mHj8nm4tQwSnDNXX10MRSZyfle9allQJL31q+QAB2IPGVfQwUWNrCKnu5BBfdSAi2QkQaSICqVoiEnKzmstRbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPyZhvrWBJVMPKVBeJqXOindn9nEA8K2CnvMSFqrDsrQIhAOpu+UCuYvk9yVVW36fwnSKeAr056OIm5dKDMQbkYVXm"}],"size":1420,"noattachment":false,"key":"/public-address/-/public-address-0.1.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"andris","email":"andris@node.ee"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"directories":{},"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","publish_time":1399961175089,"_cnpm_publish_time":1399961175089,"dist-tags":{"latest":"0.1.2"}}