0.1.1 • Published 11 years ago

on-crash v0.1.1

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

on-crash

listen for the next uncaught error x-platform. Useful for testing your async errors aren't getting chewed up somewhere they shouldn't

Installation

With packin or component

$ packin add jkroso/on-crash

then in your app:

var onCrash = require('on-crash')

API

onCrash(fn)

call fn at the next crash

Running the tests

Just run make and navigate your browser to the test.html file