
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
mongoose-connect
Advanced tools
Easy way to connect to the MongoDB database. Multiple databases.
npm install mongoose-connect
// prepare the data
var Models = [
require('./models/ModelB'), // model in another file
{
name : 'ModelNameA', // <- you will get the models by this name ***
schema : new mongoose.Schema({})
}
]
var mongoose = require('mongoose');
var databaseName = 'database-name'; // whatever you want
var mongooseConnect = require('mongoose-connect');
var mongooseConnectData = mongooseConnect.connect(databaseName, Models, mongoose);
var connection = mongooseConnectData.connection;
var models = mongooseConnectData.models;
// ModelNameA refers to ***
models.ModelNameA.findOne({...})
FAQs
Easy way to connect to the MongoDB database. Multiple databases.
We found that mongoose-connect 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
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.