Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flamrdevs/ixstore
simple state management
https://github.com/flamrdevs/ixstore
npm store
Last synced: 3 months ago
JSON representation
simple state management
- Host: GitHub
- URL: https://github.com/flamrdevs/ixstore
- Owner: flamrdevs
- License: mit
- Created: 2023-06-20T14:13:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-16T03:19:42.000Z (over 1 year ago)
- Last Synced: 2024-11-11T09:39:32.293Z (3 months ago)
- Topics: npm, store
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/ixstore
- Size: 323 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
ixstore
simple state management
![]()
usage
```ts
import ixstore from "ixstore";const store = ixstore({
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