# vox-reader

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

Latest version **4.0.1** (published 2025-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install vox-reader
pnpm add vox-reader
yarn add vox-reader
bun add vox-reader
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2025-03-08 |
| First published | 2018-06-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Florian Fechner |
| Maintainers | florianfe |
| Keywords | voxel, magicavoxel, vox, file, reader, loader |

## Links

- npm: https://www.npmjs.com/package/vox-reader
- Repository: https://github.com/FlorianFe/vox-reader.js
- Homepage: https://github.com/FlorianFe/vox-reader.js#readme
- Issues: https://github.com/FlorianFe/vox-reader.js/issues
- npm.io page: https://npm.io/package/vox-reader

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 4.0.1 (latest) — 2025-03-08
- 4.0.0 — 2025-03-08
- 3.0.2 — 2025-02-12
- 3.0.1 — 2025-02-12
- 3.0.0 — 2024-07-05
- 2.1.2 — 2022-01-08
- 2.1.1 — 2022-01-08
- 2.1.0 — 2022-01-08
- 2.0.3 — 2019-10-15
- 2.0.2 — 2019-10-14
- 2.0.1 — 2019-10-14
- 2.0.0 — 2019-10-14
- 1.0.0 — 2018-06-06

## README

# vox-reader

npm module for reading [.vox](https://github.com/ephtracy/voxel-model/blob/master/MagicaVoxel-file-format-vox.txt) files which can be exported in [MagickaVoxel](https://ephtracy.github.io/). It's the inverse function to [vox-saver.js](https://github.com/FlorianFe/vox-saver.js)

## 💾 Installation

```bash
npm install --save vox-reader
```

## 🚀 Usage

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

## 📖 License

(c) 2022 Florian Fechner. [MIT License](https://github.com/FlorianFe/vox-reader.js/blob/master/LICENSE)

Extended features added by Maximilian Gaedig

---
_Source: https://npm.io/package/vox-reader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
