go-javascript
v1.0.0
Published
Go-like syntax for NodeJS promises
Downloads
4
Readme
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 :)