Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flamrdevs/ixstoragest
simple state management with storage
https://github.com/flamrdevs/ixstoragest
npm storage store
Last synced: 3 months ago
JSON representation
simple state management with storage
- Host: GitHub
- URL: https://github.com/flamrdevs/ixstoragest
- Owner: flamrdevs
- License: mit
- Created: 2023-06-20T14:13:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T03:21:51.000Z (over 1 year ago)
- Last Synced: 2024-11-05T20:18:37.405Z (3 months ago)
- Topics: npm, storage, store
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ixstoragest
- Size: 379 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
ixstoragest
simple state management with storage
![]()
usage
```ts
import ixstoragest from "ixstoragest";const store = ixstoragest("hello", {
hello: "world",
});const unsub = store.sub((value) => {
console.log(value);
});store.get().hello; // world
store.set({ hello: "ixstore" });
// { hello: "ixstore" }
store.get().hello; // ixstore
unsub();
```
![]()
license
MIT