Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
coreio-mongodb
Advanced tools
MongoDB integration for CoreIO
$ npm install coreio-mongodb
import CoreIO from 'coreio';
import MongoDBService from 'coreio-mongodb';
// set db conf
CoreIO.setConf('mongodb', 'mongodb://localhost:27017/coreio-test');
const TodoModel = CoreIO.createModel('todo', {
schema: {
title: { type: 'string', min: 5, max: 100, required: true },
content: { type: 'string', min: 0, max: 5000 },
state: { type: 'number', default: 1 }
},
service: MongoDBService
});
export default TodoModel;
Import the model in your app, store data and save the model into a MongoDB
import TodoModel from '../path/to/model';
const model = new TodoModel();
model.set({
title: 'Test model',
content: 'This is a test content'
});
model.save().then((res) => {
console.log('Item inserted with id', res.id);
});
FAQs
MongoDB integration for CoreIO
The npm package coreio-mongodb receives a total of 1 weekly downloads. As such, coreio-mongodb popularity was classified as not popular.
We found that coreio-mongodb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.