port-pid

0.0.7 • Public • Published

port-pid Build Status

Get the pid(s) of the process on a given port.

Install

$ npm install --save port-pid

Usage

Get all the pids on a given port, or filter by udp (UDP) or tcp (TCP):

const pids = require('port-pid');
 
pids(8017).then(pids => {
    
    console.log(pids.all);
    //=> [1234, 5678]
    
    console.log(pids.tcp);
    //=> [1234]
    
    console.log(pids.udp);
     //=> [5678]
});

License

MIT © Michael Wuergler

/port-pid/

    Package Sidebar

    Install

    npm i port-pid

    Weekly Downloads

    7,784

    Version

    0.0.7

    License

    MIT

    Unpacked Size

    5.22 kB

    Total Files

    4

    Last publish

    Collaborators

    • radiovisual