# merror-meetin

> custom error with code

Latest version **1.1.3** (published 2017-09-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install merror-meetin
pnpm add merror-meetin
yarn add merror-meetin
bun add merror-meetin
```

## 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.1.3 |
| Published | 2017-09-21 |
| First published | 2017-08-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Nate |
| Maintainers | natekong |
| Keywords | error |

## Links

- npm: https://www.npmjs.com/package/merror-meetin
- Repository: https://github.com/meetinco/merror
- Homepage: https://github.com/meetinco/merror#readme
- Issues: https://github.com/meetinco/merror/issues
- npm.io page: https://npm.io/package/merror-meetin

## Dependencies (1)

- [caller-id](https://npm.io/package/caller-id.md) ^0.1.0

## 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.1.3 (latest) — 2017-09-21
- 1.1.2 — 2017-09-20
- 1.1.1 — 2017-09-15
- 1.1.0 — 2017-09-15
- 1.0.0 — 2017-08-14

## README

### Example
err_code.js
```javascript
const code = {
    INVALID_PRODUCT_ID: {
        code: 3469,
        message: '非法的商品ID'
    }
};

module.exports = code;
```

index.js
```javascript
const ErrCode = './err_code';
const MError = require('merror-meetin');
MError.configErrorCode(ErrCode);

const err = new MError(ErrCode.INVALID_PRODUCT_ID);
console.log('code', err.code, err.debugMessage, err.message);
```

Read codes in `test` for more information.

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