Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Binary Protocol composer/parser
npm i --save bipro
name (String) Unique name/identifier for type (e.g. uint8, char, byte)
configOrParent (Object | String) String defines previous defined type for inheritance.
compose(value, data, schema, protocol)
Should return an instance of Buffer
.
value Value of attributes key in data
.
data Whole composing data.
schema Attribute schema config line
protocol Current protocol instance
parse(buffer, context, schema, protocol) Should return parsed value or null
if invalid.
Defines a messageType by given config.
String
) Unique message name.Object
)
Array
) of Schema Objects
String
) Name of payload attribute.String
) Name of type.Number
|String
|Array
) based on type
Boolean
) Default: falseBoolean
) Default: falseReturns buffer for given payload.
Takes a buffer and returns parsed data or false
if no messageType matches.
int8
uint8
byte
char
int16le
int16be
uint16le
uint16be
shortle
shortbe
ushortle
ushortbe
int32le
int32be
uint32le
uint32be
longle
longbe
ulongle
ulongbe
array
items (String
|Object
)
Set custom item type. (e.g. string, char, ulongbe) Default is uint8
String
Name of typeObject
Schema options ({type: 'string', size:3})sizeType (String
)
Set custom size type. Default is uint8
size (Number
|String
)
Set custom/fixed size. Otherwise array-items will be prefixed with size-byte(s).
Number
Used as fixed length. (No size byte(s) will be prefixed)String
Used as size-value getter. (No size byte(s) will be prefixed)string
Number
|String
)
Number
Used as fixed length. (No size byte(s) will be prefixed)String
Used as size-value getter. (No size byte(s) will be prefixed)#Author
Christian Blaschke mail@platdesign.de
FAQs
Binary Protocol composer/parser
We found that bipro 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.