Takes a Byte Array of .vox file data and returns a JavaScript Object with all the containing informations
npm install vox-readernpm module for reading .vox files which can be exported in MagickaVoxel. It's the inverse function to vox-saver.js
``bash`
npm install --save vox-reader
`js
const fs = require("fs");
const readVox = require("vox-reader");
fs.readFile("my-voxel-art.vox", (error, buffer) => {
if (error) throw error;
console.log(readVox(buffer));
});
``
(c) 2022 Florian Fechner. MIT License
Extended features added by Maximilian Gaedig