# format-error-tool

> format error

Latest version **1.0.1** (published 2021-11-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install format-error-tool
pnpm add format-error-tool
yarn add format-error-tool
bun add format-error-tool
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-11-06 |
| First published | 2021-11-06 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | fwg |
| Maintainers | adf0001 |
| Keywords | format, error |

## Links

- npm: https://www.npmjs.com/package/format-error-tool
- Repository: https://github.com/adf0001/format-error-tool
- Homepage: https://github.com/adf0001/format-error-tool#readme
- Issues: https://github.com/adf0001/format-error-tool/issues
- npm.io page: https://npm.io/package/format-error-tool

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2021-11-06
- 1.0.0 — 2021-11-06

## README

# format-error-tool
format error

# Install
```
npm install format-error-tool
```

# Usage
```javascript

var formatError = require("format-error-tool");

/*
	use case 1, format an error
		formatError( text, keyValue, json )

	use case 2, make sure return an Error
		formatError( textOrError )
*/
//formatError(text, keyValue, json)

var err1= formatError('err1','key1',{a:1,b:2});

assert (
	err1.message ==='err1, "key1", {"a":1,"b":2}' && err1===formatError(formatError(formatError(err1)))
);

```

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