node-portfinder
node-portfinder copied to clipboard
A simple tool to find an open port or domain socket on the current machine
We don't have a code of conduct, free speech welcome, but derogatory comments towards individuals (not ideas) will not be tolerated. - [ ] Make a code of conduct file,...
Add changelog and release tool (it should give credit to author, provide link to the pr merged, with description (ideally pr title, which means the only thing we need to...
Similar to #115, this adds a top-level mutator function for updating the `basePath` variable for use in module based imports.
With the current implementation, there is a chance that a user binds a socket on a port (that was reported as being available) although the server (created to check whether...
PR fixes a bug reported in https://github.com/http-party/node-portfinder/pull/120#issuecomment-1502633024, where the current `indexOf` check will only succeed if `options.host` was already in `exports._defaultHosts`, as opposed to the desired behavior of appending it...
Somehow, the library tests an invalid port: ``` Uncaught RangeError [ERR_SOCKET_BAD_PORT]: options.port should be >= 0 and < 65536. Received type number (65536). at new NodeError (node:internal/errors:399:5) at validatePort (node:internal/validators:390:11)...
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,...
Provide descriptive error message when `getPorts` fails see comment https://github.com/http-party/node-portfinder/pull/178#issuecomment-2802238982 for more info
Update documentation for `getPort`, `getPorts`, `getSocket` Follow the idea for docs from https://caolan.github.io/async/v3/docs.html#concat see #168 and #169 for context. Remove the `*Promise` based docs and only document `getPort`, `getPorts`, `getSocket`...
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.14.1 to 3.14.2. Changelog Sourced from js-yaml's changelog. [3.14.2] - 2025-11-15 Security Backported v4.1.1 fix to v3 [4.1.1] - 2025-11-12 Security Fix prototype pollution issue in yaml...