nail-corpse-in-upright-position
Nail the Corpse in the Upright Position
Last updated 3 years ago by darthtrevino .
MIT · Original npm · Tarball · package.json
$ cnpm install nail-corpse-in-upright-position 
SYNC missed versions from official npm registry.

Build Status

nail-corpse-in-upright-position

Are exceptions screwing up your production game? Don't let those pesky things affect your error metrics, nail that corpse upright and pretend everything is okay!

Usage:

const nailCorpseInUprightPosition = require('nail-corpse-in-upright-position');

@nailCorpseInUprightPosition()
class DerpyThrowingClass {
  derp() {
    throw new Error('fart'); // Errors no more!
  }
}

Getting rid of stupid logs:

const nailCorpseInUprightPosition = require('nail-corpse-in-upright-position');

@nailCorpseInUprightPosition({liveDangerously: true})
class DerpyThrowingClass {
  derp() {
    throw new Error('fart'); // Errors (and annoying logs) no more!
  }
}

Handling errors (y tho?)

const nailCorpseInUprightPosition = require('nail-corpse-in-upright-position');

@nailCorpseInUprightPosition({errorHandler: (err) => console.log("I CAUGHT", err)})
class DerpyThrowingClass {
  derp() {
    throw new Error('fart'); // Errors (and annoying logs) no more!
  }
}

Current Tags

  • 0.1.2                                ...           latest (3 years ago)

3 Versions

  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |