mongo-shell:连接到mongodb shell的nodejs util

时间:2021-02-17 20:40:01
【文件属性】:
文件名称:mongo-shell:连接到mongodb shell的nodejs util
文件大小:91KB
文件格式:ZIP
更新时间:2021-02-17 20:40:01
nodejs shell mongodb TypeScript 蒙哥壳 一个nodejs util连接并发送命令到mongodb shell 用于 用法 npm install mongodb-shell const { MongoShell } = require ( 'mongodb-shell' ) ; const mongoShell = new MongoShell ( 'localhost:27017' ) ; const result = await mongoShell . sendCommand ( { in : 'foo=5' } ) ; // result contains : { out : "5" , status : "SUCCESS" } mongoShell . destroy ( )
【文件预览】:
mongo-shell-master
----.travis.yml(134B)
----renovate.json(41B)
----package.json(2KB)
----jest.config.js(70B)
----prettier.config.js(152B)
----LICENSE(1KB)
----package-lock.json(332KB)
----src()
--------__tests__()
--------index.ts(2KB)
----.npmignore(0B)
----.eslintrc.js(568B)
----tsconfig.json(318B)
----.gitignore(980B)
----CHANGELOG.md(3KB)
----README.md(424B)

网友评论