Nutritious Pancake Mountain
Wondering what’s next for npm?Check out our public roadmap! »

nail-corpse-in-upright-position

0.1.2 • Public • Published

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!
  }
}

Keywords

none

Install

npm i nail-corpse-in-upright-position

DownloadsWeekly Downloads

6

Version

0.1.2

License

MIT

Last publish

Collaborators

  • avatar