Skip to content
Named-Binary-Tag Format, a module for Node.JS used to write and read files using Markus Persson NBT file format.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
tests
.gitignore
README.markdown
index.js
package.json

README.markdown

NBTF

by Damien Ansart.

NBTF is a Javascript reader and writer using the NBT file format, written for Node.js.

Usage

var nbtf = require('nbtf'),
parser = new nbtf,
fs = require('fs');

var content = fs.readFileSync('file.nbt');
var data = parser.parse(content);

console.log(data);

Byte arrays are returned as Node.js Buffer objects.

Issues

  • 64 bit integers overflow
  • Since tag names are used as Object keys, some tags names may be not valid Javascript, thus requiring a numeric access.

Contribute to NBTF

> git clone https://github.com/nirariel/NBTF.git

Running Tests

To run the test suite first invoke the following command within the repo, installing the development dependencies:

$ npm install

then run the tests:

$ npm test

Copyright

This work is licenced under the WTFPLv2

Something went wrong with that request. Please try again.