
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
#LevelSync
LevelSync is a Backbone.Model replacement which uses LevelDB via the levelup interface.
npm install --save levelsync
var levelup = require('level');
var db = levelup('./path/to/db');
var Backbone = require('backbone');
Backbone.sync = require('levelsync')(db);
var StatBlock = Backbone.Model.extend({
defaults: {
'str': 8,
'con': 8,
'wis': 8,
'dex': 8,
'int': 8,
'chr': 8
}
});
var myCharacter = new StatBlock();
myCharacter.set('str', 18);
myCharacter.set('name', 'LEROY JENKINS');
myCharacter.save(myCharacter.toJSON(), {cb: function(err){
if(!err) console.log(myCharacter.get('name'), 'was saved');
}});
// or
var promise = myCharacter.save();
promise.when(function(){
console.log(myCharacter.get('name'), 'was saved');
});
The options hash accepts a new parameter, cb. This callback will be use for all the level operations if set. It's signature should be (err, data). If this is not set, a q promise will be returned instead.
LevelSync is copyright (c) 2013 Todd Kennedy. Usage is provided under the terms of the MIT Licence
FAQs
Backbone.Sync replacement for leveldb
The npm package levelsync receives a total of 3 weekly downloads. As such, levelsync popularity was classified as not popular.
We found that levelsync 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.