Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@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
The npm package @mongez/monpulse receives a total of 2 weekly downloads. As such, @mongez/monpulse popularity was classified as not popular.
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
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.