New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
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
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc