2.0.0 • Published 10 years ago

mongoose-disable-stack-trace v2.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

mongoose disable stack trace

Disables stack trace on Validation, Cast and Version errors in mongoose to prevent accidentally sending stack traces to consumers.

Installation

$ npm install mongoose-disable-stack-trace

Usage

It is highly recommended to import this library after all model declarations.

require('mongoose-disable-stack-trace')();

License

MIT

Copyright (c) 2015 Faleij faleij@gmail.com