Structjs allows mapping of contiguously allocated binary data to JavaScript objects for both Node.js and the Browser.