Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Awesome ES6 generator-based MongoDB ODM for Node.js v4.x (or newer). Just take a look on its pretty models and beautiful API. Uses official mongodb driver under the hood.
$ npm install mongorito --save
Note: In order for the following examples to work, you need to use co to run generators.
const Mongorito = require('mongorito');
const Model = Mongorito.Model;
// connect to localhost/blog
yield Mongorito.connect('localhost/blog');
// define model
class Post extends Model {
}
// create and save new Post document
let post = new Post({
title: 'Node.js with --harmony rocks!',
body: 'Long post body',
author: {
name: 'John Doe'
}
});
yield post.save();
// update document
post.set('title', 'Post got a new title!');
post.set('author.name', 'Doe John');
yield post.save();
// find posts where body equals "Long post body"
let posts = yield Post.where('body', 'Long post body').find();
// find posts where author's name equals "John Doe"
posts = yield Post.where('author.name', 'John Doe').find();
// Bonus: find posts where title starts with "Node"
posts = yield Post.where('title', /^node/i).find();
Check out Getting Started guide on http://mongorito.com. There are more guides available to learn more.
$ npm test
Mongorito is released under the MIT License.
FAQs
ES6 generator-based MongoDB ODM.
The npm package mongorito receives a total of 104 weekly downloads. As such, mongorito popularity was classified as not popular.
We found that mongorito 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.