sjmulder / nbt-js

NBT.js – a JavaScript parser for NBT archives
http://sjmulder.github.io/nbt-js/
Other
73 stars 19 forks source link

Make parseUncompressed() return the same format always again #14

Closed sjmulder closed 9 years ago

sjmulder commented 9 years ago

In 16e6c1a I changed parseUncompressed() to return either { <name>: <value> } or <value> rather than { root: <name>, value: <value> } because it looked cleaner, but I've come back from that as indeed the benefits of having it return the same structure always are bigger, especially wrt symmetry with writeUncompressed().