mongo-dot-notation-tool:mongo点表示法对象的工具

时间:2024-05-18 14:51:10
【文件属性】:
文件名称:mongo-dot-notation-tool:mongo点表示法对象的工具
文件大小:5KB
文件格式:ZIP
更新时间:2024-05-18 14:51:10
JavaScript Mongo点符号工具 将点符号转换为简单的JS对象并返回。 安装 npm install mongo-dot-notation-tool --save 用 var dotNotationTool = require ( 'mongo-dot-notation-tool' ) ; 方法 编码 将JS对象转换为mongo点表示法对象 用 dotNotationTool . encode ( { name : { last : 'Foo' , first : 'Bar' } } ) ; // returns: {'name.last': 'Foo', 'name.first': 'Bar'} dotNotationTool . encode ( { $and : [ { name : { last : 'Foo' } } , { position : 'CTO' } ] } ) ; //
【文件预览】:
mongo-dot-notation-tool-master
----.gitignore(34B)
----.eslintrc(229B)
----package.json(934B)
----.travis.yml(94B)
----index.js(3KB)
----test.js(6KB)
----main.sublime-project(501B)
----README.md(2KB)
----.eslintignore(14B)

网友评论