Finds and reserves free network ports on the local machine

Usage no npm install needed!

<script type="module">
  import portReservation from 'https://cdn.skypack.dev/port-reservation';


Port Reservation System

allows to reserve network ports for later use

Circle CI Coverage Status Dependency Status devDependency Status

This library is a thin wrapper around PortFinder. It guarantees that ports that have been provided to a client are considered "reserved", and are not provided again in future requests for more free ports. Even if a reserved port is currently not used.

This is useful for example when it takes a while to start up the processes that use these ports.


see our developer documentation