Wondering what’s next for npm?Check out our public roadmap! »

    private-ip
    DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/private-ip package

    2.2.0 • Public • Published

    private-ip

    Check if IP address is private.

    Installation

    ❯ npm install private-ip --save
    
    or
    
    ❯ yarn add private-ip

    Usage

    const is_ip_private = require('private-ip')
    
    is_ip_private('10.0.0.0')
    // => true
    
    is_ip_private('101.0.26.90')
    // => false

    Development

    Tests
    $ yarn run test
    Build
    $ yarn run build

    Authors

    Credits

    https://github.com/frenchbread/private-ip/blob/master/CREDITS.md

    License

    MIT

    IANA Reserved IP list

    https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry-1.csv

    Install

    npm i private-ip

    DownloadsWeekly Downloads

    11,895

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    9.55 kB

    Total Files

    7

    Last publish

    Collaborators

    • avatar