{"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","tarball":"http://registry-npm.ywwl.com/public-address/download/public-address-0.1.2.tgz","integrity":"sha512-UuNkKRwenn0kQvTCU8LIz3pUslFTbN2FrtKYWiKUOU7Qqxw0Vf879YY2Qc5Ne6JGWi9+lOcW83fdYs8wblh0iQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCyzWpB6FolR2yUBon8Wyb5+mFqVMX1X/RUVeeZ/aHk7gIgXSMP+K5S+mI8mD2VHODROeh5PWlq/W+bV4HoVrNBzuA="}],"size":1574,"noattachment":false,"key":"/public-address/-/public-address-0.1.2.tgz"},"maintainers":[{"name":"andris","email":"andris@node.ee"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/public-address-0.1.2.tgz_1479974204093_0.7122597198467702"},"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":1479974206164,"_cnpm_publish_time":1479974206164,"dist-tags":{"latest":"0.1.2"}}