1.0.2 • Published 6 years ago

@zmotivat0r/o0 v1.0.2

Weekly downloads
19,988
License
MIT
Repository
github
Last release
6 years ago

:rocket: Install

npm i @zmotivat0r/o0

:eyeglasses: Usage

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('(>_<)'),
  });
}

:hammer: Test

npm test