@gradeup/asde
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.1 • Public • Published

    asde Build Status codecov

    Easy error handling with async await and destructuring for promises

    Install

    $ npm install @gradeup/asde
    

    Usage

    const asde = require('@gradeup/asde');
    const promise = Promise.reject(new Error('Something went wrong'));
    const fn = async () => await asde(p);
    //=> [{ message: 'Something went wrong' }, null]

    API

    asde(input)

    input

    Type: Promise

    Promise or any thenable to resolve

    License

    MIT © Nikhil Srivastava

    Keywords

    none

    Install

    npm i @gradeup/asde

    DownloadsWeekly Downloads

    124

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    3.07 kB

    Total Files

    5

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar