Skip to content

v0.0.1

Choose a tag to compare

@github-actions github-actions released this 08 Sep 07:37
· 85 commits to main since this release

0.0.1 — MVP

This release brings basic package functionality and fixes some critical legacy bugs.

  • Eliminates CVE-2024-29415
  • Enhances IPv6/IPv4 detection
  • Provides both CJS and ESM entrypoints
  • Exposes browser-compatible @webpod/ip/core module

Install

npm i @webpod/ip

Drop-in

- const ip = require('ip')
+ const ip = require('@webpod/ip')

Temporary workaround to avoid refactoring is using overrides / resolutions in your package.json:

{
  "overrides": {
    "ip": "@webpod/ip"
  }
}

Usage

The API is fully compatible with the latest ip@2.0.1

import ip from '@webpod/ip'

ip.address()                              // '192.168.1.50'  (example local address)
ip.isPrivate('127.0.0.1')                 // true