UNPKG

vox-reader

Version:

Takes a Byte Array of .vox file data and returns a JavaScript Object with all the containing informations

7 lines (5 loc) 174 B
const readString = (data : Array<number>) : string => data.map(charCode => String.fromCharCode(charCode)) .join(''); export = readString; // fix longer strings etc.