noop-server

Quickly launch a noop server on a free port. Useful for testing.

Usage no npm install needed!

<script type="module">
  import noopServer from 'https://cdn.skypack.dev/noop-server';
</script>

README

noop-server

Quickly launch a noop server and get the port number.

Useful for testing.

Build Status

Install

$ npm install --save noop-server

Usage

const noopserver = require('noop-server');

noopserver().then(port => {
    console.log(port);
    //=> 61739
});

CLI

Install

$ npm install --global noop-server

Launches a noop server on a free port, and prints the port number to the console.

CLI Usage

$ noopserver
noop-server port: 61511

screenshot

License

MIT © Michael Wuergler