nbtutils
v1.0.3
Published
Utils for easy parsing nbt files
Downloads
1
Readme
Install
Run npm install nbtutils
Demo
Run npm test
See the /examples folder for details.
const NBTUtils = require('../nbt');
const fs = require('fs');
let nbt = new NBTUtils('BE'); // Big-endian/Little-endian
nbt.Parse('./test.nbt', false /*ifGzip */, (err, data) => {
if (err) {
throw new Error(err);
}
console.log(data);
fs.writeFileSync('test.json', JSON.stringify(data, null, '\t'));
});