A binary file parser with internal buffer and caching system that lets you read virtually infinitely sized files. Still under development.
varParser=require('binary-file-parser'),opt={path: 'path/to/file'},parser=newParser(opt);parser.struct('Header',{magic: 'string(4)',id: 'short',dataOffset: 'uint',filesCount: 'uint'});parser.struct('myFile',{header: 'Header',});parser.parse('myFile',function(err,data){console.log(data);=>{"header": {"magic": "test","id": 434,"dataOffset": 20,"filesCount": 3}}});