Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@mongez/monpulse
Advanced tools
A powerful and easy to use MongoDB driver for Nodejs
MonPulse is a MongoDB driver for Nodejs, it's built on top of the official MongoDB driver, and it provides a simple and easy to use API for working with MongoDB, it is fast, efficient, reliable and will make your life easier with real world apps.
Some but not all of the features:
MonPulse
is very easy to use, it's just a wrapper around MongoDB driver.MonPulse
supports multiple databases, you can connect to multiple databases at the same time.MonPulse
has a powerful aggregate framework that helps you to perform complex queries.MonPulse
supports basic CRUD operations, you can perform create, read, update and delete operations.MonPulse
is events driven, you can listen to events and perform actions, for example before creating, updating or deleting a document.MonPulse
has a powerful models system, a Model is a collection manager document based, it manages a collection's document easily with many utilities.MonPulse
has a very small learning curve, you can learn it in few minutes.MonPulse
supports pagination, you can paginate your results easily.MonPulse
supports output formatting, you can format your output easily when model is sent as a response.MonPulse
supports auto incremented id, you can use it as a primary key for your documents.MonPulse
supports random or sequential id.MonPulse
has a migration system, you can create migrations and run them easily.MonPulse
supports single and multiple embedded documents, you can embed documents inside other documents.npm i @mongez/monpulse
Using yarn:
yarn add @mongez/monpulse
Using pnpm:
pnpm add @mongez/monpulse
Here is a simple example of defining a User model:
import { Model } from "@mongez/monpulse";
export class User extends Model {
/**
* The collection name
* Must be defined explicitly.
*/
public static collection = "users";
}
A quick example of creating a user:
import { User } from "src/models/user";
export async function createUser() {
const user = await User.create({
name: "Hasan Zohdy",
email: "hassanzohdy@gmail.com",
});
console.log(user.data);
}
Outputs something similar to:
{
"id": 1231412,
"_id": "fagtrw43qwedasjoijwq",
"name": "Hasan Zohdy",
"email": "hassanzohdy@gmail.com",
"createdAt": "2023-06-01 00:00:00",
"updatedAt": "2023-06-01 00:00:00"
}
To see the full documentation, please visit monpulse Documentation
FAQs
Powerful Mongodb Database Manager for Node Js
We found that @mongez/monpulse demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.