Socket
Socket
Sign inDemoInstall

zustand-log-and-expose

Package Overview
Dependencies
9
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

zustand-log-and-expose

Zustand middleware for logging and exposing stores


Version published
Maintainers
1
Weekly downloads
4
increased by33.33%

Weekly downloads

Readme

Source

Log and expose middleware for zustand

This is the middleware for Zustand state manager that logs store changes in console and exposes them in window object.

Usage is simple:

const logAndExpose = createLogAndExposeMiddleware("ConsolePrefix");

Then use logAndExpose variable as middleware.

Arguments that you will pass into the creator function will prepend console message.

Exposed stores are available through window._zustand after any change of store.

Keywords

FAQs

Last updated on 08 Dec 2023

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc