Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
redadder
Advanced tools
Readme
redadder is a simple redis ORM for node.js. It implements simple access to object properties saved in redis, supporting all the redis data-types.
var red = require('redadder')(6379); // the port where redis listens
var User = red('user', // the name of the class
{
attributes: {
name: 'string',
email: 'string',
sortedSet: 'zset', // neat, but not that useful
age: 'string', // remember that in redis numbers are strings
friends: 'users', // user pluralized -> collection of users
bestFriend: 'user',
fb: 'string' // for facebook login, or whathaveyou
},
indexes: ['fb'] // lets you use User.fetchBy(fbid, 'fb')
}
);
User.bind('destroy', function(user) {
return red.query(User).test('friends', 'includes', user).exec().then(function(users) {
for(var i = 0, promises = []; i < users.length; i++) {
users[i].get('friends').remove(user);
promises.push(users[i].save());
}
return Q.all(promises);
});
});
var mark = new User();
mark.save({
name: 'mark markson',
email: 'm@r.k',
fb: 12
}).then(function(mark) { console.log(mark.id); }); // redadder uses Q promises
var steve = new User().save({
name: 'steve',
email: 'i don\'t have one QQ',
friends: [mark]
});
steve.bind('change:email', function(user) {
console.log(user.get('name') + ' changed his email to ' + user.get('email'));
});
steve.set('email', 'steveisacooldudewithasweetnewemailaddress@hotmail.com').save();
var Admin = red('admin', User, { // inheritance
attributes: {},
indexes: []
});
FAQs
redadder is a simple redis ORM for node.js. It implements simple access to object properties saved in redis, supporting all the redis data-types.
The npm package redadder receives a total of 1 weekly downloads. As such, redadder popularity was classified as not popular.
We found that redadder 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.