go-javascript

1.0.0 • Public • Published

Go-Javascript

An incredible module that allows you to return promises like go.

Get rid of those silly try/catches!

try {
  // some type of async operation that can throw
} catch (err) {
  // handle the fugly error
}

And BAM! Do this instead with the power of go-javascript

const [err, data] = go(/* your promise here! */)
// And do whatever you want here :)

Readme

Keywords

none

Package Sidebar

Install

npm i go-javascript

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

7.57 kB

Total Files

6

Last publish

Collaborators

  • gordysc