arbitrary-unused-port

Get an arbitrary unused port in node.js synchronously.

Usage no npm install needed!

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

README

arbitrary-unused-port

Get an arbitrary unused port in node.js synchronously.

build npm

Installation

npm install arbitrary-unused-port --save

Usage

const port = require('arbitrary-unused-port')