Propagate errors out of promise context.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
UNLICENSE
index.es6.js
package.json
test.js

README.md

promise-done npm version

Propagate errors out of promise context.

Description

This library allows to terminate promises by throwing an exception for unhandled errors. This is especially useful when we just want the stack trace to be displayed in case of unhandled error.

Usage

import done from 'promise-done'

stuff()
  .then(otherStuff())
  .catch(done)