Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
binarypoint
Advanced tools
#binarypoint
Write and read seperated binary messages
npm install binarypoint
This is a duplex stream there wraps a binary duplex stream. The binarypoint
then splits and joins the binary data up intro buffers, by adding a UInt16BE
chunk to the output and the consume that chunk on input.
Dude to the limitations of an UInt16BE
you can not write messages larger
than 64 KB.
In reality this is an object stream, since the buffer objects don't get concatenated, but it acts very much like a buffer stream and you can use it at such.
Features:
Example:
var binarypoint = require('binarypoint');
var socket = net.connect(5000); // Connect to an echo server
var spliter = binarypoint(socket);
spliter.once('readable', function () {
// socket rescived two messages as "\0x00\0x05hallo\0x00\0x05Again".
// those messages got split up.
spliter.read() // <Buffer 68 61 6c 6c 6f> = 'hallo'
spliter.read() // <Buffer 77 6f 72 6c 64> = 'world'
});
// Writes: "\0x00\0x05hallo\0x00\0x05Again".
spliter.write('hallo');
spliter.write('again');
spliter.end();
##License
The software is license under "MIT"
Copyright (c) 2013 Andreas Madsen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Write and read seperated binary messages
The npm package binarypoint receives a total of 3 weekly downloads. As such, binarypoint popularity was classified as not popular.
We found that binarypoint demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.