length-prefixed-message
Reads and writes binary length prefixed messages.
Last updated 10 years ago by sorribas .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install length-prefixed-message 
SYNC missed versions from official npm registry.

#length-prefixed-message

build status

Reads and writes binary length prefixed messages.

##Install

npm install length-prefixed-message

##Example

var lpm = require('length-prefixed-message');

lpm.read(someStream, function(msgBuffer) {
    console.log(msgBuffer.toString());
});

lpm.write(someOtherStream, new Buffer('hello world'));

// or you can just pass a string if you want.
lpm.write(someOtherStream, 'hello world');

Current Tags

  • 3.0.4                                ...           latest (5 years ago)

7 Versions

  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           10 years ago
  • 3.0.2                                ...           10 years ago
  • 3.0.1                                ...           10 years ago
  • 3.0.0                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE