# iplocation

> Get ip location information.

Latest version **7.2.0** (published 2020-04-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install iplocation
pnpm add iplocation
yarn add iplocation
bun add iplocation
```

## 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 | 7.2.0 |
| Published | 2020-04-29 |
| First published | 2014-09-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10 |
| Dependencies | 3 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 76 |
| Author | Richie Bendall |
| Maintainers | richienb, roryrjb |
| Keywords | ip, location, coordinates, locate, find, address, ip-location, geolocation |

## Links

- npm: https://www.npmjs.com/package/iplocation
- Repository: https://github.com/Richienb/iplocation
- npm.io page: https://npm.io/package/iplocation

## Dependencies (3)

- [ky](https://npm.io/package/ky.md) ^0.19.1
- [is-ip](https://npm.io/package/is-ip.md) ^3.1.0
- [ky-universal](https://npm.io/package/ky-universal.md) ^0.6.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 7.2.0 (latest) — 2020-04-29
- 7.1.0 — 2020-04-24
- 7.0.0 — 2020-04-03
- 6.1.0 — 2019-01-08
- 6.0.4 — 2018-11-04
- 6.0.3 — 2018-11-04
- 6.0.2 — 2018-10-21
- 6.0.1 — 2018-10-21
- 6.0.0 — 2018-10-21
- 5.0.1 — 2018-06-02
- 5.0.0 — 2017-06-23
- 4.1.0 — 2017-04-24
- 4.0.1 — 2017-04-01
- 4.0.0 — 2017-03-29
- 2.0.1 — 2015-06-21
- … 5 more at https://npm.io/package/iplocation/versions

## README

# iplocation [![Travis CI Build Status](https://img.shields.io/travis/com/Richienb/iplocation/master.svg?style=for-the-badge)](https://travis-ci.com/Richienb/iplocation)

Get ip location information.

[![NPM Badge](https://nodei.co/npm/iplocation.png)](https://npmjs.com/package/iplocation)

## Install

```sh
npm install iplocation
```

## Usage

```js
const ipLocation = require("ip-location");

(async () => {
	await ipLocation("172.217.167.78");
	//=> { latitude: -33.8591, longitude: 151.2002, region: { name: "New South Wales" ... } ... }
})();
```

## API

### ipLocation(ip)

#### ip

Type: `string`

The ipv4 address to get the information for.

## Related

- [iplocation-cli](https://github.com/Richienb/iplocation-cli) - CLI for this module.

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