Skip to content

wupengFEX/mongo-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mongo-parser

NPM Version Build Status

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);

License

MIT

About

Mongoose schema parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published