
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
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
FAQs
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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.