views:

79

answers:

2

I need to encode and decode IEEE 754 floats and doubles from binary in node.js to parse a network protocol.

Are there any existing libraries that do this, or do I have to read the spec and implement it myself? Or should I write a C module to do it?

A: 

Maybe you can see if this thing does what you want: http://jsfromhell.com/classes/binary-parser

Tor Valamo
+1  A: 

This is the best way to do it: http://github.com/pgriess/node-jspack

nornagon