
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
my-little-store
Advanced tools
A simple and fast store to use as truth source and update your reactive components.
npm i my-little-store -S
yarn add my-little-store
| Arguments | Description |
|---|---|
values | object with initial values that will be stored |
| Name | arguments | Description |
|---|---|---|
| add | {prop1: value1[, prop2:value2[, ...[, propN:valueN]]]} | adds new prop(s) to store |
| remove | `prop | [prop1[, prop2[, ...[, propN]]]]` |
| update | {prop1: value1[, prop2:value2[, ...[, propN:valueN]]]} | updates multiple props fom provided object |
| subscribe | callback | will fire your callback when any prop changes with current values |
| unsubscribe | callback | unsubscribe a callback from store updates |
| on | prop, callback | will fire your callback on prop updates with value |
| off | prop, callback | unsubscribe from prop updates |
| one | prop, callback | subscribe for next change |
| addMiddleware | prop, callback | add a middleware function that will be called before the value setter, must return a value |
| removeMiddleware | prop | removes middleware from prop |
| Name | Returns | Description |
|---|---|---|
| props | array | Returns an object with prop:prop pairs |
| values | values | Returns object containing stored items |
yarn
npm i
yarn build
npm run build
yarn test
npm test
yarn docs
npm run docs
Yes, please!
Also this
Written with ❤❤❤ by Wasteland Fluttershy.
FAQs
Light-weight and simple store library
We found that my-little-store 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.