@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

Readme

Keywords

none

Package Sidebar

Install

npm i @gradeup/asde

Weekly Downloads

1

Version

3.0.1

License

MIT

Unpacked Size

3.07 kB

Total Files

5

Last publish

Collaborators

  • fifty_shades
  • pc099
  • codehimanshu