Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ladjs/mongoose-error-messages

Better error messages for Mongoose, built for Lad
https://github.com/ladjs/mongoose-error-messages

error i18n localized messages

Last synced: 8 days ago
JSON representation

Better error messages for Mongoose, built for Lad

Awesome Lists containing this project

README

        

# [**@ladjs/mongoose-error-messages**](https://github.com/ladjs/mongoose-error-messages)

[![build status](https://img.shields.io/travis/com/ladjs/mongoose-error-messages.svg)](https://travis-ci.com/ladjs/mongoose-error-messages)
[![code coverage](https://img.shields.io/codecov/c/github/ladjs/mongoose-error-messages.svg)](https://codecov.io/gh/ladjs/mongoose-error-messages)
[![code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![made with lass](https://img.shields.io/badge/made_with-lass-95CC28.svg)](https://lass.js.org)
[![license](https://img.shields.io/github/license/ladjs/mongoose-error-messages.svg)](LICENSE)
[![npm downloads](https://img.shields.io/npm/dt/@ladjs/mongoose-error-messages.svg)](https://npm.im/@ladjs/mongoose-error-messages)

> Better error messages for Mongoose

## Table of Contents

* [Install](#install)
* [Usage](#usage)
* [Contributors](#contributors)
* [License](#license)

## Install

[npm][]:

```sh
npm install @ladjs/mongoose-error-messages
```

[yarn][]:

```sh
yarn add @ladjs/mongoose-error-messages
```

## Usage

```js
const mongoose = require('mongoose');
mongoose.Error.messages = require('@ladjs/mongoose-error-messages');
```

## Contributors

| Name | Website |
| -------------- | ------------------------- |
| **Nick Baugh** | |

## License

[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com)

##

[npm]: https://www.npmjs.com/

[yarn]: https://yarnpkg.com/