Skip to content

Library for getting information about ports and names of processes for windows

License

Notifications You must be signed in to change notification settings

coderaiser/winport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

winport

WinPort - library for getting information about ports and names of processes for windows.

Install

npm i winport

API

getPidByPort(port, callback) - get process id by port.

getNameByPid(pid, callback) - get name by process id.

Example

var winport = require('winport'),
    pid     = 80;
    
    winport.getPidByPort(80, function(error, pid) {
        if (error)
            console.log(error);
        else
            winport.getNameByPid(pid, function(error, name) {
                console.log(error || name);
            });
    });

License

MIT

About

Library for getting information about ports and names of processes for windows

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published