nbt-js

0.1.0 • Public • Published

nbt-js

Copyright (c) 2016 Jonathan Faulch

About

nbt-js is an NBT parser written in JavaScript for Node.js.

Usage

var fs    = require('fs');
var zlib  = require('zlib');
var nbt   = require('nbt-js');
 
var file  = fs.readFileSync('level.dat');
var level = zlib.gunzipSync(file);
var tag   = nbt.read(level);
 
console.log(JSON.stringify(tag.payload));

License

nbt-js is licensed under the MIT License. See license.md.

Readme

Keywords

Package Sidebar

Install

npm i nbt-js

Weekly Downloads

10

Version

0.1.0

License

MIT

Last publish

Collaborators

  • thejonwithnoh