Asynchronous functions return promises. To do what you want, try something like this
wrapper().then(someString => console.log(someString));
You can also expect from wrapper(), like other promises, the context of another asynchronous function.
console.log(await wrapper());
source
share