https://github.com/qxip/node-red-contrib-bencode
Node-Red Bencode enc/dec pipeline
https://github.com/qxip/node-red-contrib-bencode
Last synced: 24 days ago
JSON representation
Node-Red Bencode enc/dec pipeline
- Host: GitHub
- URL: https://github.com/qxip/node-red-contrib-bencode
- Owner: QXIP
- Created: 2020-01-21T11:47:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-21T17:30:05.000Z (over 6 years ago)
- Last Synced: 2025-01-12T06:26:29.493Z (over 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
node-red-contrib-bencode
=======================
Node-RED function that takes the msg.payload and converts it to/from bencode data.
Installation
------------
Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically `~/.node-red`
npm i node-red-contrib-bencode
Usage
-----
If the input is a buffer it tries to parse it as bencode and creates a javascript object.
If the input is a javascript object it tries to serialize it as bencode and creates a buffer.