@hidoo/util-local-ip

0.19.0 • Public • Published

@hidoo/util-local-ip

Utility that get current ip address in local network.

Installation

$ npm install @hidoo/util-local-ip

Usage

import getLocalIps from '@hidoo/util-local-ip';

const ips = getLocalIps({ipv6: false, internal: true, external: false});
// ['127.0.0.1']

Test

$ yarn test

License

MIT

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i @hidoo/util-local-ip

    Weekly Downloads

    1

    Version

    0.19.0

    License

    MIT

    Unpacked Size

    8.31 kB

    Total Files

    5

    Last publish

    Collaborators

    • hidoo