New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-red-contrib-objectid

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-red-contrib-objectid

Node-RED node to create an Object-Id for mongodb operations.

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
59
9.26%
Maintainers
2
Weekly downloads
 
Created
Source

Platform Node-RED Contribution Bit NodeJS_Version Standard - JavaScript Style Guide NPM download NPM version Build and publish Gitpod Ready-to-Code

node-red-contrib-objectid

This Node-Red node is to create an Object-Id for mongodb write operations from JSON inputs.

flowshot

The selected property in msg.payload or in Array-Objects will be set to a BSON-Object-Id, you can also inject a 24 hex characters and the node creates a valid Object-Id property from it or raise an error if it is not valid.

For example:

msg.payload._id = "572dbc06f307c8682045c55c"

or

msg.payload.uuid = "572dbc06f307c8682045c55c"

If the target property is not to find or empty, then a random Object-Id is created.

Test flows

Flow example

Config

flowsprops

Examples

flowsres

flowsres2

flowsres3

License:

MIT: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

node-red

FAQs

Package last updated on 02 Aug 2022

Did you know?

Socket

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.

Install

Related posts