Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alsotang/externalip
get your external ip in Node.js
https://github.com/alsotang/externalip
Last synced: 2 months ago
JSON representation
get your external ip in Node.js
- Host: GitHub
- URL: https://github.com/alsotang/externalip
- Owner: alsotang
- Created: 2014-07-07T10:04:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-02-27T10:22:46.000Z (almost 6 years ago)
- Last Synced: 2024-05-02T01:10:39.365Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 40
- Watchers: 3
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# externalip
**WARNING**: perhaps https://github.com/sindresorhus/public-ip is more and more fast, but opendns does not work fine at mainland china.
[![Build Status](https://travis-ci.org/alsotang/externalip.svg?branch=master)](https://travis-ci.org/alsotang/externalip)
get your external ip in Node.js. Based on http://ip.cn .
## install
```bash
npm i externalip
```## usage
```js
externalip(function (err, ip) {
console.log(ip); // => 8.8.8.8
});
```