# ip-to-int

> IP to Integer converter for Node.js

Latest version **0.3.1** (published 2016-05-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install ip-to-int
pnpm add ip-to-int
yarn add ip-to-int
bun add ip-to-int
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2016-05-25 |
| First published | 2016-05-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/ip-to-int) |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Joshua Marquez |
| Maintainers | joshua.marquez |
| Keywords | ipv4, ip, integer, int, decimal, converter |

## Links

- npm: https://www.npmjs.com/package/ip-to-int
- Repository: https://github.com/joshuamarquez/node-ip-to-int
- Homepage: https://github.com/joshuamarquez/node-ip-to-int#readme
- Issues: https://github.com/joshuamarquez/node-ip-to-int/issues
- npm.io page: https://npm.io/package/ip-to-int

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 0.3.1 (latest) — 2016-05-25
- 0.3.0 — 2016-05-25

## README

# ip-to-int

## Install

```
npm install ip-to-int --save
```

## Usage

```javascript
const ipInt = require('ip-to-int');

// IP to Integer
ipInt('89.150.79.17').toInt(); // 1503022865

// Integer to IP
ipInt('1503022865').toIP(); // 89.150.79.17
```

## Reference

http://www.aboutmyip.com/AboutMyXApp/IP2Integer.jsp

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