node-portfinder icon indicating copy to clipboard operation
node-portfinder copied to clipboard

Add promise version of getPorts function

Open MasterOdin opened this issue 3 years ago • 0 comments

PR adds a new getPortsPromise function to allow using a promisified version of getPorts, similar to how there's a getPortPromise version of getPort. A test is included for the function, which mimics what I saw for testing getPortPromise.

I also fixed a type error which made it seem like the options parameter was required for getPorts, where it's optional, just need to always pass the count and callback.

MasterOdin avatar Jan 08 '23 15:01 MasterOdin