You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

clean-error

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-error

Never worry about catching errors again.

0.0.0-work-in-progress
latest
npm
Version published
Weekly downloads
4
Maintainers
1
Weekly downloads
 
Created
Source

Coveralls – test coverage
Travis – build status
David – status of dependencies
Stability: experimental
Code style: airbnb

clean-error

Never worry about catching errors again.
A tiny wrapper around tiny-error.





Demo

Catching errors to print a message to the user? Don’t bother! Just throw them and let them halt your program. They’ll still look pretty darn clean.

You write:

const cleanError = require('clean-error')('my-amazing-program');

throw cleanError('Oops!');

The user sees:

Coming soon…

Installation

$ npm install clean-error

License

MIT © Studio B12 GmbH

Keywords

error

FAQs

Package last updated on 17 Jun 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts