node-red-contrib-localstorage 1.0.1
A Node-RED node for save on localstorage
node-red-contrib-localstorage
This node was designed to act like the browser localstorage.
Install
You can install this node directly from the "Manage Palette" menu in the Node-RED interface. There are no compilation steps.
npm install node-red-contrib-localstorage
How to use
Configure the node
Configure the local-storage configuration with a unique name for the storage. To create multiple storages it is necessary to create new configurations with different names
Set item
The 'set item' Node save a value to a key sent in localStorage message field.
Get item
The 'get item' Node get a value from a key sent in localStorage message field.
Clear
The 'clear' Node remove all keys from localStorage.
Has item
The 'Has item' Node checks if a key is defined in localstorage