@nuxtjs/youch

WebJar for @nuxtjs/youch

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

nuxtjs__youch
Last Version

Last Version

4.2.3
Release Date

Release Date

Type

Type

jar
Description

Description

@nuxtjs/youch
WebJar for @nuxtjs/youch
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/nuxt/youch

Download nuxtjs__youch

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/nuxtjs__youch/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>nuxtjs__youch</artifactId>
    <version>4.2.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/nuxtjs__youch/
implementation 'org.webjars.npm:nuxtjs__youch:4.2.3'
// https://jarcasting.com/artifacts/org.webjars.npm/nuxtjs__youch/
implementation ("org.webjars.npm:nuxtjs__youch:4.2.3")
'org.webjars.npm:nuxtjs__youch:jar:4.2.3'
<dependency org="org.webjars.npm" name="nuxtjs__youch" rev="4.2.3">
  <artifact name="nuxtjs__youch" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='nuxtjs__youch', version='4.2.3')
)
libraryDependencies += "org.webjars.npm" % "nuxtjs__youch" % "4.2.3"
[org.webjars.npm/nuxtjs__youch "4.2.3"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : cookie jar [0.3.1,0.4)
org.webjars.npm : mustache jar [2.3.0,3)
org.webjars.npm : stack-trace jar [0.0.10]

Project Modules

There are no modules declared in this project.

Youch!

Pretty error reporting for Node.js 🚀 (Modified for Nuxt.js & SSR Bundles)





NPM Version Build Status Downloads Stats Appveyor

Gitter Channel Trello Patreon

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.

Features

  1. HTML reporter
  2. JSON reporter, if request accepts a json instead of text/html.
  3. Sorted frames of error stack.

Installation

npm i --save @nuxtjs/youch

Basic Usage

Youch is used by AdonisJs and Nuxt.js, but it can be used by express or raw HTTP server as well.

const Youch = require('@nuxtjs/youch')
const http = require('http')

http.createServer(function (req, res) {

  // PERFORM SOME ACTION
  if (error) {
    const youch = new Youch(error, req)

    youch
    .toHTML()
    .then((html) => {
      res.writeHead(200, {'content-type': 'text/html'})
      res.write(html)
      res.end()
    })
  }

}).listen(8000)

Release History

Checkout CHANGELOG.md file for release history.

Meta

Checkout LICENSE.txt for license information Harminder Virk (Aman) - https://github.com/thetutlage

org.webjars.npm

Nuxt

The Intuitive Vue.js Framework

Versions

Version
4.2.3