No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.npmignore
License
Makefile
Readme.md
component.json
index.js
package.json
test.html
test.js

Readme.md

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