All Projects → pd4d10 → friendly-error

pd4d10 / friendly-error

Licence: MIT license
Show uncaught errors friendly in Node.js.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to friendly-error

pony-cause
Ponyfill and helpers for the standardized Error Causes
Stars: ✭ 42 (-44%)
Mutual labels:  error-handling
express-error-slack
Express error handling middleware for reporting error to Slack
Stars: ✭ 14 (-81.33%)
Mutual labels:  error-handling
nested-error-stacks
A node.js module for creating Error objects with nested Errors in stacktraces
Stars: ✭ 86 (+14.67%)
Mutual labels:  error-handling
redux-airbrake
Redux middleware for Airbrake error logging
Stars: ✭ 20 (-73.33%)
Mutual labels:  error-handling
koa-better-error-handler
A better error-handler for Lad and Koa. Makes `ctx.throw` awesome (best used with koa-404-handler)
Stars: ✭ 51 (-32%)
Mutual labels:  error-handling
raygun4android
Android crash reporting provider for Raygun
Stars: ✭ 19 (-74.67%)
Mutual labels:  error-handling
ngx-errors
Angular directives for displaying validation errors
Stars: ✭ 51 (-32%)
Mutual labels:  error-handling
custom error
Define custom errors without boilerplate using the custom_error! macro.
Stars: ✭ 70 (-6.67%)
Mutual labels:  error-handling
elmah.io
ELMAH error logger for sending errors to elmah.io.
Stars: ✭ 31 (-58.67%)
Mutual labels:  error-handling
raygun4py
Python provider for Raygun
Stars: ✭ 18 (-76%)
Mutual labels:  error-handling
SolveWithStack
Android library for helping you to reach out to best possible answer for your bug/error available on stack overflow and will show it in your Android Studio Console only.
Stars: ✭ 15 (-80%)
Mutual labels:  error-handling
auto-async-wrap
automatic async middleware wrapper for expressjs errorhandler.
Stars: ✭ 21 (-72%)
Mutual labels:  error-handling
fortran-error-handler
Comprehensive error framework for applications requiring functional and robust error handling, utilising the power of modern object-oriented Fortran.
Stars: ✭ 19 (-74.67%)
Mutual labels:  error-handling
TrackJS-Node
TrackJS Error Monitoring agent for NodeJS
Stars: ✭ 26 (-65.33%)
Mutual labels:  error-handling
of
🍬 Promise wrapper with sugar 🍬
Stars: ✭ 13 (-82.67%)
Mutual labels:  error-handling
rakered
The open source components from rake.red
Stars: ✭ 28 (-62.67%)
Mutual labels:  error-handling
go-errors
A super tiny package for error encapsulation in idiomatic Go
Stars: ✭ 14 (-81.33%)
Mutual labels:  error-handling
node-graceful-shutdown
Gracefully shutdown your modular NodeJS application.
Stars: ✭ 20 (-73.33%)
Mutual labels:  error-handling
kotlin-multiplatform-example
A Kotlin multiplatform example app that targets Android, ReactJS, iOS, JavaFx, and Spring Boot
Stars: ✭ 115 (+53.33%)
Mutual labels:  error-handling
optionals
Rust-like error handling and options for TypeScript and Deno!
Stars: ✭ 97 (+29.33%)
Mutual labels:  error-handling

friendly-error

Show uncaught errors friendly in Node.js.

Demo

Usage

npm install --save friendly-error

Then add a line at the beginning of your entry file:

require('friendly-error')()

That's it.

It use Google, so make sure you have network access to Google. StackOverflow's search API seems not working as expected.

Configuration

Proxy

friendly-error support HTTP, HTTPS and SOCKS5 proxy.

// HTTP proxy
// Just replace 'http://' with 'https://' to use HTTPS proxy
require('friendly-error')({
  proxy: 'http://localhost:8080'
})

// SOCKS5 proxy
require('friendly-error')({
  proxy: 'socks5://localhost:1080'
})

Colors

If you don't like default colors, you could change it easily.

Default configuration is as follows:

require('friendly-error')({
  errorMessage: chalk.red, // Error message
  errorStack: chalk.reset // Error stack
  breakPoint: chalk.bgWhite.black, // Break point where error happens
  answer: chalk.yellow // Best answer from stackoverflow
  link: chalk.cyan.underline // Links
})

Visit chalk for more information.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].