
Security News
vlt Launches Real-Time Dependency Analysis Powered by Socket
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
backbone-dirty
Advanced tools
Server-side overrides for Backbone to use node-dirty
for Model persistence.
Backbone 0.3.3.
Pass a filepath to the db (will be created if it doesn't exist yet) when
calling require()
.
var Backbone = require('backbone');
Backbone.sync = require('backbone-dirty')('app.db').sync;
// Backbone.sync will now load and save models from app.db.
backbone-dirty
stores models in the node-dirty
db using the model.url
as
its key. Collections retrieve models by matching the Collection url against
the initial portion of the Model url.
var orange = new FruitModel({id: 'orange'});
var apple = new FruitModel({id: 'apple'});
var banana = new FruitModel({id: 'banana'});
console.log(orange.url()); // fruits/orange
console.log(apple.url()); // fruits/apple
console.log(banana.url()); // fruits/banana
var fruits = new FruitCollection();
console.log(fruits.url); // fruits
fruits.fetch(); // retrieves orange, apple, banana
FAQs
Unknown package
The npm package backbone-dirty receives a total of 38 weekly downloads. As such, backbone-dirty popularity was classified as not popular.
We found that backbone-dirty demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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
vlt adds real-time security selectors powered by Socket, enabling developers to query and analyze package risks directly in their dependency graph.
Security News
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.