Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
My experiments into what it takes to create a object mapper for Couchdb. This has been something I've been thinking about for a while and whether its a viable option.
Currently its purely fun research. I've been reading through mongoose and couch-ar as imspiration.
#How do I use this thing?
Below is a quick cheatsheet but the docs can be found http://garrensmith.com/LazyBoy
var Model = require('LazyBoy');
Model.define('User', {
name: String
surname: {type: String, default: "Rambo"}
})
var user = Model.create('User', {name: "John", surname: "Rambo"});
user.save(function (err, saved_user) {
// .. do some other stuff here
})
var user_id = "123456";
var User = Model('User');
User.find(user_id, function (err, user) {
// .. do something with the user
})
Will return an array of all documents that fit the criteria
var User = Model('User');
User.all(function (err, users) {
// .. do something with the user
})
Will return an array of all documents that fit the criteria
var User = Model('User');
User.where(name,"Ben", function (err, users) {
// .. do something with the user
})
To see in detail what is happening the logging can be turned on. This can be done by
require('LazyBoy').logger.setLogLevel(1);
LazyBoy
uses Coloured logger under the covers and uses the same log levels
#What needs doing?
#Changelog 11 Nov 2011 - Added Validations using node-validator 13 Sep 2011 - Add Id to serialised model 11 Sep 2011 - Add Before And After Remove Callbacks (Donnie Hedin) 17 Aug 2011 - Add support for custom methods
#Contributors
FAQs
A object document mapper for couchdb
The npm package LazyBoy receives a total of 38 weekly downloads. As such, LazyBoy popularity was classified as not popular.
We found that LazyBoy 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.