# get-ipinfo

> Get IP info using ipinfo.io

Latest version **1.0.0** (published 2015-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-ipinfo
pnpm add get-ipinfo
yarn add get-ipinfo
bun add get-ipinfo
```

Provides the command `ipinfo`.

## 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 | 2015-01-17 |
| First published | 2015-01-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Johnie Hjelm |
| Maintainers | johnie |
| Keywords | ipinfo, wrapper, cli |

## Links

- npm: https://www.npmjs.com/package/get-ipinfo
- Repository: https://github.com/adroiter/get-ipinfo
- Issues: https://github.com/adroiter/get-ipinfo/issues
- npm.io page: https://npm.io/package/get-ipinfo

## Dependencies (2)

- [got](https://npm.io/package/got.md) ^2.3.0
- [meow](https://npm.io/package/meow.md) ^2.1.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-01-17

## README

# get-ipinfo

> Get IP info using [ipinfo.io](http://ipinfo.io)

## Install

```sh
$ npm install --save get-ipinfo
```

## Usage

```javascript
var IPinfo = require('get-ipinfo');

/**
 * Get your IP info
 */

IPinfo(function(err, ip) {
  console.log(ip);
});

/**
 * Get defined IP info
 */

IPinfo('1.3.3.7', function(err, ip) {
  console.log(ip);
});
```

## CLI

```sh
$ npm install --global get-ipinfo
```

```sh
$ ipinfo --help

  Usage
    $ ipinfo
    
    {
      "ip": "90.111.11.111"
      "hostname": "Hostname"
      "city": "Stockholm"
      "region": "Stockholms Lan"
      "country": "SE"
      "loc": "59.32932318.068581"
      "org": "Adroiter AB"
      "postal": "1337"
    }

  Example
    $ ipinfo --ip 1.3.3.7
    $ ipinfo --type country
    
  Options
    --ip    Specify an IP address
    --type  Type of information: ip|hostname|city|region|country|loc|org|postal
```

## License

MIT © [Adroiter](http://adroiter.io)

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