wstatesession

Mixin to add persistent session storing functionality to a class. StateSession extends StateStorage. These modules solve the common problem to persistently store the state( session ) of an object. Them let save the state in a specific moment ( for example

Usage no npm install needed!

<script type="module">
  import wstatesession from 'https://cdn.skypack.dev/wstatesession';
</script>

README

module::StateSession status experimental

Mixin to add persistent session storing functionality to a class. StateSession extends StateStorage. These modules solve the common problem to persistently store the state( session ) of an object. Them let save the state in a specific moment ( for example on process exit ) and to restore the state later ( for example on process start ). Use the module to be more cross-platform, don't repeat yourself and forget about details of implementation you don't worry.

Try out from the repository

git clone https://github.com/Wandalen/wStateSession
cd wStateSession
will .npm.install
node sample/trivial/Sample.s

Make sure you have utility willbe installed. To install willbe: npm i -g willbe@stable. Willbe is required to build of the module.

To add to your project

npm add 'wstatesession@stable'

Willbe is not required to use the module in your project as submodule.