Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 489 Bytes

File metadata and controls

17 lines (10 loc) · 489 Bytes

mongoose-cleaner

Greenkeeper badge

Clean out mongo/mongoose specific data from documents.

Usage

Import this module. Invoke cleanMongooseDocument() on the document in question and it will return the cleaned counterpart.

Example

import mongoose_cleaner from '@springworks/mongoose-cleaner';

const cleaned_document = mongoose_cleaner.cleanMongooseDocument(doc);