
Security News
pnpm 10.16 Adds New Setting for Delayed Dependency Updates
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
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
The npm package responsive-storage receives a total of 1,631 weekly downloads. As such, responsive-storage popularity was classified as popular.
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
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.