freeport-promise Like freeport but with promises import { freeport } from 'freeport' const port = await freeport() console.log(port)