Async/await wrapper with error handling, retry and error override
npm install @zmotivat0r/o0
``shell`
npm i @zmotivat0r/o0
`typescript
import { oO } from '@zmotivat0r/o0';
async function do() {
const [err, user] = await oO(findUser(1));
const [, projects] = await oO(findProjects(1), {
retry: 5,
});
const [customError] = await oO(doStuff(), {
err: new SomeCustomError('(>_<)'),
});
}
`
`shell``
npm test