This package has been deprecated

Author message:

deprecated, see qiao-ip

quickly-ip

1.0.0 • Public • Published

quickly-ip

npm version npm downloads

Get public network ip under browser and node.js

install

npm i quickly-ip

usage

// commonjs
const { getIP } = require('quickly-ip');

// es6
import { getIP } from 'quickly-ip';

api

getIP

get public network ip

  • timeout
    • type: number
    • desc: timeout, ms, default: 300ms
  • debug
    • type: boolean
    • desc: whether to display debug logs, default: false
  • return
    • type: string
    • desc: ip
// ip
const ip = await getIP(timeout);

// ip debug
const ip = await getIP(timeout, true);

fast

Request the following websites and return the fastest response. The default timeout is 300ms

Package Sidebar

Install

npm i quickly-ip

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

9.68 kB

Total Files

6

Last publish

Collaborators

  • npm_insistime