@datanimbus/state-watch
v1.0.0
Published
A Library to store state data in mongodb and watch for any change in it.
Downloads
4
Readme
@datanimbus/state-watch
A Library to store state data in MongoDB and watch for any changes in it.
Description
@datanimbus/state-watch is a Node.js library that provides a simple and efficient way to manage state data in MongoDB. It allows you to create, update, and monitor state changes in real-time. This library is particularly useful for applications that require persistent state management and need to react to state changes.
Features
- Create and update state data in MongoDB
- Subscribe to state changes for specific state IDs
- Automatic cleanup of states with final statuses
- Uses UUID for unique state identification
- Configurable final statuses for state lifecycle management
Installation
npm i @datanimbus/state-watch