ts-diagnostic-formatter
Formatter for TypeScript Diagnostics
Last updated 2 years ago by zinserjan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ts-diagnostic-formatter 
SYNC missed versions from official npm registry.

ts-diagnostic-formatter

Build Status Linux Build Status Windows codecov

A collection of custom formatter for TypeScript Diagnostics.

Installation

Install ts-diagnostic-formatter via NPM as usual:

$ npm install ts-diagnostic-formatter --save-dev

Usage

import diagnosticFormatter from "ts-diagnostic-formatter";
const formatter =  "ts-loader"; // or stylish/codeframe
const contextPath = process.cwd();
const formattedDiagnostics = diagnosticFormatter(diagnostics, formatter, contextPath);

Included formatters

ts-loader

ts-loader formatter

stylish

stylish formatter

codeframe

codeframe formatter

License

MIT

Current Tags

  • 0.1.1                                ...           latest (2 years ago)

2 Versions

  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 4
Dependencies (5)
Dev Dependencies (12)

Copyright 2014 - 2017 © taobao.org |