Minimalist numeric binary packing utilities for node.js
Want to see pretty graphs? Log in now!
npm install binpack
|10||downloads in the last day|
|58||downloads in the last week|
|312||downloads in the last month|
|Last Published By|
|Version||0.1.0 last updated 2 months ago|
|Keywords||binary, pack, unpack|
Deprecated binary packing utilities for node.js
What's all this?
node now actually contains native code for packing binary buffers so this module is no longer needed. do not use in new code.
see the included COPYING file for licensing.
the core of the module is the set of
unpack pair functions. The meaning should be clear from the name - for example,
The following types are available for both pack and unpack:
Float32 Float64 Int8 Int16 Int32 UInt8 UInt16 UInt32
Both types of functions take an optional second argument. If this argument is
"big", the output is put in big endian format. If the argument is
"little", the output is put in little endian format. If the argument is anything else or non-existent, we default to "little" endian [THIS IS NEW BEHAVIOR IN 0.0.15 - previous version would default to the native encoding.].