# ts-diagnostic-formatter

> Formatter for TypeScript Diagnostics

Latest version **0.1.1** (published 2017-07-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install ts-diagnostic-formatter
pnpm add ts-diagnostic-formatter
yarn add ts-diagnostic-formatter
bun add ts-diagnostic-formatter
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2017-07-19 |
| First published | 2017-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Jan-André Zinser |
| Maintainers | zinserjan |
| Keywords | TypeScript, Diagnostic, formatter |

## Links

- npm: https://www.npmjs.com/package/ts-diagnostic-formatter
- Repository: https://github.com/zinserjan/ts-diagnostic-formatter
- Homepage: https://github.com/zinserjan/ts-diagnostic-formatter#readme
- Issues: https://github.com/zinserjan/ts-diagnostic-formatter/issues
- npm.io page: https://npm.io/package/ts-diagnostic-formatter

## Dependencies (5)

- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [es6-error](https://npm.io/package/es6-error.md) ^4.0.2
- [text-table](https://npm.io/package/text-table.md) ^0.2.0
- [normalize-path](https://npm.io/package/normalize-path.md) ^2.1.1
- [babel-code-frame](https://npm.io/package/babel-code-frame.md) ^6.22.0

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2017-07-19
- 0.1.0 — 2017-06-25

## README

# ts-diagnostic-formatter
[![Build Status Linux][build-travis-badge]][build-travis] [![Build Status Windows][build-appveyor-badge]][build-appveyor] [![codecov][codecov-badge]][codecov]

A collection of custom formatter for TypeScript Diagnostics.

## Installation

Install ts-diagnostic-formatter via NPM as usual:

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

## Usage

```typescript
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](docs/screenshots/ts-loader.png)


### stylish

![stylish formatter](docs/screenshots/stylish.png)

### codeframe

![codeframe formatter](docs/screenshots/codeframe.png)


## License

MIT


[build-travis-badge]: https://travis-ci.org/zinserjan/ts-diagnostic-formatter.svg?branch=master
[build-travis]: https://travis-ci.org/zinserjan/ts-diagnostic-formatter
[build-appveyor-badge]: https://ci.appveyor.com/api/projects/status/swjbs9vq1l9yy4v9/branch/master?svg=true
[build-appveyor]: https://ci.appveyor.com/project/zinserjan/ts-diagnostic-formatter
[codecov-badge]: https://codecov.io/gh/zinserjan/ts-diagnostic-formatter/branch/master/graph/badge.svg
[codecov]: https://codecov.io/gh/zinserjan/ts-diagnostic-formatter

---
_Source: https://npm.io/package/ts-diagnostic-formatter · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
