Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

vox-reader

FlorianFe270MIT4.0.1TypeScript support: included

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

voxel, magicavoxel, vox, file, reader, loader

readme

vox-reader

npm module for reading .vox files which can be exported in MagickaVoxel. It's the inverse function to vox-saver.js

💾 Installation

npm install --save vox-reader

🚀 Usage

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));
});

📖 License

(c) 2022 Florian Fechner. MIT License

Extended features added by Maximilian Gaedig