Add SMAZ node (for simple text compression)

This commit is contained in:
Dave Conway-Jones
2019-05-20 19:33:37 +01:00
parent 2070a932be
commit dcbe41bf83
7 changed files with 255 additions and 0 deletions

22
parsers/smaz/README.md Normal file
View File

@@ -0,0 +1,22 @@
node-red-node-smaz
==================
A <a href="http://nodered.org" target="_new">Node-RED</a> node to pack and unpack strings to smaz format buffers.
Install
-------
Run the following command in your Node-RED user directory - typically `~/.node-red`
npm install node-red-node-smaz
Usage
-----
Uses a <a href="https://github.com/antirez/smaz">smaz</a> library to pack and unpack short strings to small buffers.
**Note**: this node ONLY accepts strings - anything else will just be dropped.
If the input is a string it converts it into a smaz buffer.
If the input is a smaz buffer it converts it back to the original string.