nbt-reader

1.1.0 • Public • Published

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

/nbt-reader/

    Package Sidebar

    Install

    npm i nbt-reader

    Weekly Downloads

    2

    Version

    1.1.0

    License

    ISC

    Unpacked Size

    7.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • madbrozzer