# ip-promise

> Uso de serviços gratuitos de IP Geolocation

Latest version **1.0.0** (published 2021-04-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install ip-promise
pnpm add ip-promise
yarn add ip-promise
bun add ip-promise
```

## 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.0 |
| Published | 2021-04-02 |
| First published | 2021-04-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Igor Junior |
| Maintainers | igorjunior |
| Keywords | ip, geolocation, free |

## Links

- npm: https://www.npmjs.com/package/ip-promise
- Repository: https://github.com/igorjunior/ip-promise
- Issues: https://github.com/igorjunior/ip-promise/issues
- npm.io page: https://npm.io/package/ip-promise

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [https](https://npm.io/package/https.md) ^1.0.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

- 1.0.0 (latest) — 2021-04-02

## README

<h1 align="center">IP Promise</h1>

<p align="center">
  Uso de serviços gratuitos de IP Geolocation
</p>

## Como utilizar
### Instalação

#### npm
```
$ npm install --save ip-promise
```

#### yarn
```
$ yarn add ip-promise
```

### Realizando uma consulta

``` js
const ip = require('./ip-promise');

ip('8.8.8.8')
  .then(console.log)

  //  {
  //    city: 'Mountain View',
  //    state: 'CA',
  //    country: 'US'
  //  }
```

### Quando o serviço não retorna resultados

``` js
const ip = require('./ip-promise');

ip('8.8.8.8113')
  .then(console.log)

  //{
  //  error: 'service_error',
  //  message: 'O serviço não retornou eventos para este ip.'
  //}
```

## Autor


| [<img src="https://avatars0.githubusercontent.com/u/53293017?v=3&s=115"><br><sub>@igorjunior</sub>](https://github.com/igorjunior) |
| :---: |

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