find-free-udp-port

    1.0.0 • Public • Published

    free-udp-port

    Usage

    const findUdpPort = require('find-free-udp-port');
     
    findUdpPort({           // default values
        start: 2048,        // 1024
        end: 2248,          // 65535
        host: '127.0.0.1',  // localhost
        type: 'udp4'        // udp4
    }).then(({type, port, host}) => {
        console.log(port, host, type);
    });

    Keywords

    Install

    npm i find-free-udp-port

    DownloadsWeekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.22 kB

    Total Files

    4

    Last publish

    Collaborators

    • hilgert