
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
node-red-contrib-mongodb-variable
Advanced tools
A Node-RED node to query MongoDB.
Edited by Andrii Lototskyi
Run the following command in the root directory of your Node-RED install
npm install node-red-contrib-mongodb-variable
MongoDB node driver 3.1.13 interface for Node-RED based on node-red-bluemix-nodes and MongoDB 3 Driver Please refer to the mongoDB node driver 'Collection' documentation to read about each operation.
add data to settings.js
mongoConnects:
{
uri: "mongodb://login:password@host:27017/dbName"
},
set data in function node
msg.payload = {"login": "login"};
return msg;
Import the flow below in an empty sheet in nodered
[{"id":"f40a8af5.55fed8","type":"mongodb-var in","z":"1797a27a.5d0c6e","service":"_ext_","configNode":"49d0a8a1.8be078","name":"MongoDB","collection":"","operation":"find.toArray","x":464.5,"y":262,"wires":[["de8e6bf4.a24618"]]},{"id":"5c17003c.47d0d","type":"inject","z":"1797a27a.5d0c6e","name":"Start","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":143.5,"y":262,"wires":[["ced363e1.72367"]]},{"id":"ced363e1.72367","type":"function","z":"1797a27a.5d0c6e","name":"Request","func":"msg.payload = {};\nmsg.collection = 'collection_name';\nreturn msg;","outputs":1,"noerr":0,"x":294.5,"y":262,"wires":[["f40a8af5.55fed8"]]},{"id":"de8e6bf4.a24618","type":"debug","z":"1797a27a.5d0c6e","name":"Log Out","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","x":635.5,"y":262,"wires":[]},{"id":"49d0a8a1.8be078","type":"mongodb-var","z":"","uri":"mongodb://localhost:27017/dbName","name":"connect","options":"","parallelism":"-1"}]
FAQs
MongoDB node for Node-RED
The npm package node-red-contrib-mongodb-variable receives a total of 9 weekly downloads. As such, node-red-contrib-mongodb-variable popularity was classified as not popular.
We found that node-red-contrib-mongodb-variable demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.