1.0.4 • Published 9 years ago

public-ip-address v1.0.4

Weekly downloads
1
License
GPLv2
Repository
-
Last release
9 years ago

Install

$ npm install public-ip-address

Usage

var publicIpAddress = require('public-ip-address');

publicIpAddress.on('success', function(ip) {
    console.log(ip); // Return the public ip address on success
});

publicIpAddress.on('error', function(error) {
    // Return an error object on error
    console.log(JSON.stringify(error, null, '  '));
});

publicIpAddress.getPublicIpAddress();

Copyright

Copyright (c) 2015, Yassine Khachlek yassine.khachlek@gmail.com.

All rights reserved.

License

GPLv2.