Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ladjs/mongoose-error-messages
- Owner: ladjs
- License: mit
- Created: 2019-09-03T06:05:12.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-10T01:16:04.000Z (over 4 years ago)
- Last Synced: 2024-10-28T22:42:56.547Z (18 days ago)
- Topics: error, i18n, localized, messages
- Language: JavaScript
- Homepage: https://lad.js.org
- Size: 198 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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/