New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@gradeup/asde

Package Overview
Dependencies
Maintainers
6
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gradeup/asde

Easy error handling with async await and destructuring

  • 3.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
6
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 17 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc