node-red-contrib-bencode 0.1.2

A Node-RED node to encode and decode bencode buffers

npm install node-red-contrib-bencode

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.

Node Info

Version: 0.1.2
Updated 5 years, 8 months ago
License: MIT
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

4 in the last week

Nodes

  • bencode

Keywords

  • node-red
  • node
  • bencode
  • parser
  • serializer
  • encoder
  • decoder
  • packet

Maintainers