1.1.0 • Published 3 years ago

nbt-reader v1.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

nbt-reader

NBT format reader. Format widely used in Minecraft game. Can uncompress GZiped NBT file buffers and uncompressed ones.

Example

const nbt = require('nbt-reader');
const fs = require('fs');

const file = fs.readFileSync('some/file.nbt');

nbt.read(file, function (error, nbt) {
  // error - null in case of successfully read. Error otherwise.
  // nbt.toString() - convert to string format.
  // JSON.stringify(nbt) - convert to JSON format.
});