
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
responsive-storage
Advanced tools
Responsive local storage, supports vue2 and vue3
English | 简体中文
vue2
and vue3
, no need to install additional dependenciesvue2
, vue3
examples in the playgrounds folder , zero learning usage cost1.76 KB
, and the footprint of the package size in the project is only calculated in bitsnpm install responsive-storage
or
pnpm add responsive-storage
import Storage from "responsive-storage";
Vue.use(Storage, {
// must pass
version: 2,
// Namespace, optional, default `rs-` (not recommended if there is no special requirement)
nameSpace: "xx_",
// The responsive object that needs to be stored (it should be noted here that if nameSpace is passed, the second parameter of the Storage.getData method must be passed and the value of nameSpace must be the same. If nameSpace is not passed, the second parameter of Storage.getData method parameters can be omitted)
memory: {
starValue: Storage.getData("starValue", 'xx_') ?? 1
}
});
Click to view the specific usage
import { createApp } from "vue";
import App from "./App.vue";
import Storage from "responsive-storage";
const app = createApp(App);
app.use(Storage, {
memory: {
starValue: Storage.getData("starValue") ?? 1
}
});
Click to view the specific usage
2.2.0 (2023-02-13)
version
is declared hereFAQs
Responsive local storage, supports vue2 and vue3
We found that responsive-storage 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
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.