
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
backbone-stash
Advanced tools
Server-side overrides for Backbone to use stash
for Model persistence.
documentcloud backbone 0.5.1
developmentseed stash 0.0.2
Pass a filepath to the stash directory (will be created if it doesn't exist
yet) when calling require()
.
var Backbone = require('backbone');
Backbone.sync = require('backbone-stash')('data').sync;
// Backbone.sync will now load and save models from data/
backbone-stash
stores models in stash 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-stash receives a total of 0 weekly downloads. As such, backbone-stash popularity was classified as not popular.
We found that backbone-stash 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.