<T>(opt?: WrapOption) => T | never
Try to get the value, will panic when the wrapped value is an error.
const wrapper = await wrap(Promise.resolve(1))
const json = wrapper.unwrap() // 1
// this will exit the program in Node.js
(await wrap(Promise.reject(1))).unwrap({panic: true})
(await wrap(Promise.reject(1))).unwrap({panic: true, exitCode: 2})