1.0.4 • Published 6 years ago

catcherr v1.0.4

Weekly downloads
-
License
MIT license
Repository
gitlab
Last release
6 years ago

Catcherr

Did you ever deploy a web app, only to discover that The Grate Safari throws an exception, and you have no idea why? Catcherr catches those err's for you.

Installation

Using npm:

$ npm install catcherr

In a browser, using cdn:

<script src="https://cdn.jsdelivr.net/npm/catcherr/catcherr.js" type="module"></script>

Usage

Using es6 imports

<script type="module">
    import catcher from "catcherr.js" // if you dont use a bundler, you can replace with https://cdn.jsdelivr.net/npm/catcherr/catcherr.js
    catcher(error => console.log("Caught global error: ", error))
</script>

Importing in html

<script src="https://cdn.jsdelivr.net/npm/catcherr/catcherr.js" type="module"></script>
<script>
    window.onError = error => console.log("Caught global error: ", error)
</script>
1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago