Name: youch
Owner: NUXT
Description: Pretty error reporting for Node.js :rocket: (Modified for Nuxt.js & SSR Bundles)
Forked from: poppinss/youch
Created: 2017-08-04 18:24:52.0
Updated: 2018-01-12 03:11:17.0
Pushed: 2018-01-07 07:30:14.0
Size: 141
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Pretty error reporting for Node.js ? (Modified for Nuxt.js & SSR Bundles)
Youch is inspired by Whoops but with a modern design. Reading stack trace of the console slows you down from active development. Instead Youch print those errors in structured HTML to the browser.
i --save @nuxtjs/youch
Youch is used by AdonisJs and Nuxt.js, but it can be used by express or raw HTTP server as well.
t Youch = require('@nuxtjs/youch')
t http = require('http')
.createServer(function (req, res) {
PERFORM SOME ACTION
(error) {
const youch = new Youch(error, req)
youch
.toHTML()
.then((html) => {
res.writeHead(200, {'content-type': 'text/html'})
res.write(html)
res.end()
})
isten(8000)
Checkout CHANGELOG.md file for release history.
Checkout LICENSE.txt for license information Harminder Virk (Aman) - https://github.com/thetutlage