# public-ip-address

> Get the public ip address asynchronously.

Latest version **1.0.4** (published 2015-02-09) · GPLv2 license · 0 weekly downloads

## Install

```sh
npm install public-ip-address
pnpm add public-ip-address
yarn add public-ip-address
bun add public-ip-address
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2015-02-09 |
| First published | 2015-02-09 |
| Weekly downloads | 0 |
| License | GPLv2 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yassine Khachlek |
| Maintainers | yassine-khachlek |

## Links

- npm: https://www.npmjs.com/package/public-ip-address
- npm.io page: https://npm.io/package/public-ip-address

## Recent versions

- 1.0.4 (latest) — 2015-02-09
- 1.0.3 — 2015-02-09
- 1.0.2 — 2015-02-09
- 1.0.1 — 2015-02-09
- 1.0.0 — 2015-02-09

## README

# Install

    $ npm install public-ip-address

# Usage

``` js
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.

---
_Source: https://npm.io/package/public-ip-address · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
