
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
backbone.browserStorage
Advanced tools
A localStorage and sessionStorage adapter for Backbone. It's a drop-in replacement for Backbone.Sync() to handle saving to the browser's browserStorage or sessionStorage database.
A localStorage and sessionStorage adapter for Backbone. It's a drop-in replacement for Backbone.Sync() to handle saving to the browser's browserStorage or sessionStorage database.
Include Backbone.browserStorage after having included Backbone.js:
<script type="text/javascript" src="backbone.js"></script>
<script type="text/javascript" src="backbone.browserStorage.js"></script>
Create your collections like so:
window.SomeCollection = Backbone.Collection.extend({
// For localStorage, use BrowesrStorage.local.
browserStorage: new Backbone.BrowserStorage.session("SomeCollection"), // Unique name within your app.
// ... everything else is normal.
});
Include RequireJS:
<script type="text/javascript" src="lib/require.js"></script>
RequireJS config:
require.config({
paths: {
jquery: "lib/jquery",
underscore: "lib/underscore",
backbone: "lib/backbone",
browserstorage: "lib/backbone.browserStorage"
}
});
Define your collection as a module:
define("SomeCollection", ["browserstorage"], function() {
var SomeCollection = Backbone.Collection.extend({
// For localStorage, use BrowserStorage.local.
browserStorage: new Backbone.BrowserStorage.session("SomeCollection") // Unique name within your app.
});
return SomeCollection;
});
Require your collection:
require(["SomeCollection"], function(SomeCollection) {
// ready to use SomeCollection
});
If you're using browserify.
Install using npm install backbone.browserstorage
, and require the module.
Backbone.BrowserStorage = require("backbone.browserstorage");
This package is a fork of jeromegn's Backbone.localStorage
0.0.5 (2018-10-28)
options
map. Otherwise events fire even though
{silent: true}
was passed to the Collection.prototype.create
method.FAQs
A localStorage and sessionStorage adapter for Backbone. It's a drop-in replacement for Backbone.Sync() to handle saving to the browser's browserStorage or sessionStorage database.
The npm package backbone.browserStorage receives a total of 19 weekly downloads. As such, backbone.browserStorage popularity was classified as not popular.
We found that backbone.browserStorage 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.