simplehttp2server serves the current directory on an HTTP/2.0 capable server. This server is for development purposes only.
You probably want simplehttp2server-cli instead.
$ npm install --save simplehttp2server
import {execFile} from 'node:child_process';
import simplehttp2server from 'simplehttp2server';
execFile(simplehttp2server, error => {
console.log('simplehttp2server is starting!');
});