https://github.com/simplesmiler/throw-next-tick
Throw the error in the next tick
https://github.com/simplesmiler/throw-next-tick
Last synced: over 1 year ago
JSON representation
Throw the error in the next tick
- Host: GitHub
- URL: https://github.com/simplesmiler/throw-next-tick
- Owner: simplesmiler
- License: isc
- Created: 2015-09-25T11:45:55.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-25T21:54:32.000Z (almost 11 years ago)
- Last Synced: 2025-03-19T00:39:11.636Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# throw-next-tick
> Throw the error in the next tick
## Install
``` sh
$ npm install throw-next-tick --save
```
## Usage
Can be used as a `.done` replacement for promises:
``` js
var throwNextTick = require('throw-next-tick');
promiseOfSomething
.then(function(something) { ... })
.catch(throwNextTick);
```
## License
[ISC](https://opensource.org/licenses/ISC)