youch-terminal
Show youch error on terminal
Last updated 4 months ago by virk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install youch-terminal 
SYNC missed versions from official npm registry.

Youch terminal

This package converts the youch error message to a string to be displayed on terminal. The output of the function is colorized using chalk.

Install

npm i youch-terminal

Usage

Make sure you pass the output toJSON to the youch terminal function.

const Youch = require('youch')
const forTerminal = require('youch-terminal')

const error = new Error('Some weird error')

new Youch(error, {})
.toJSON()
.then((output) => {
  console.log(forTerminal(output))
})

Current Tags

  • 1.0.1                                ...           latest (4 months ago)

2 Versions

  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           3 years ago

Copyright 2014 - 2016 © taobao.org |