mongo-parser
v1.0.2
Published
parse mongoose schema to valide store
Downloads
21
Readme
mongo-parser
Since mongoose can't store some keywords, sucha as $
, .
and so on, so mongo-parser is aim at code conversion.
Basic
- node 6+
Usage
npm i mongo-parser --save
API
escape(object)
escape for object or string, for example
const msp = require('mongo-parser');
msp.escape(obj);
unescape(object)
escape for object or string, for example
const msp = require('mongo-parser');
msp.unescape(obj);