I replaced "export = somrthing" with export default because I can't figure out how to import this on an ES project.
I also added the riff data to the return statement. FlorianFe if you ever read this please fix your library
npm module for reading .vox files which can be exported in MagickaVoxel. It's the inverse function to vox-saver.js
npm install --save vox-reader
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