1.0.1 • Published 5 years ago

node-finite-state-machine v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Node Finite State Machine

You can find the package in: https://www.npmjs.com/package/node-finite-state-machine

-- OR -- using the following command to install:

npm i node-finite-state-machine

History

library for finite state machines. This project has been modified from Javascript State Machine with the following changes:

  1. Remove all the front-end code.
  2. Rewrite camelize to use cached regex.
  3. Restructure file locations
  4. Rewrite FSM, Config in to classes.
  5. Add persistence plugin.
  6. History plugin support persistence.
  7. Add support to ENUM
  8. Add History and Persistence as "builtin" plugins.
  9. Add reset() and setState() functions (required by persistence plugin).
  10. Add "change" event for plugins.
  11. Add createTime and updateTime properties
  12. History plugin support timestamps.